-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (33 loc) · 764 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
RM = rm -rfd
CP = cp
CHMOD = chmod
MKDIR = mkdir -p
VENDOR = vendor
COMPOSER = ./composer.phar
COMPOSER_DEV ?=
COMPOSER_INTERACTION ?= --no-interaction
COMPOSER_PREFER_SOURCE ?=
.PHONY: all
all: install
.PHONY: install
install: $(VENDOR) lib/presist-js
@echo 'install done'
.PHONY: update
update: $(COMPOSER)
$(COMPOSER) selfupdate
$(COMPOSER) update
.PHONY: clean
clean:
$(RM) composer.lock $(COMPOSER)
$(RM) vendor/*
$(RM) vendor
$(VENDOR): $(COMPOSER)
$(COMPOSER) install $(COMPOSER_PREFER_SOURCE) $(COMPOSER_INTERACTION) $(COMPOSER_DEV)
$(COMPOSER):
curl -sS https://getcomposer.org/installer | php
$(CHMOD) u=rwx,go=rx $(COMPOSER)
lib:
$(MKDIR) $@
lib/presist-js: lib
cd lib; \
git clone https://github.com/jeremydurham/persist-js.git