forked from phpbrew/phpbrew
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 660 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 660 Bytes
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
TARGET = phpbrew
SIGNATURE = $(TARGET).asc
CP = cp
INSTALL_PATH = /usr/local/bin
TEST = phpunit
$(TARGET): vendor $(shell find bin/ shell/ src/ -type f) box.json.dist .git/HEAD
box compile
touch -c $@
vendor: composer.lock
composer install
touch $@
.PHONY: sign
sign: $(SIGNATURE)
$(SIGNATURE): $(TARGET)
gpg --armor --detach-sign $(TARGET)
install: $(TARGET)
$(CP) $(TARGET) $(INSTALL_PATH)
update/completion:
bin/phpbrew zsh --bind phpbrew --program phpbrew > completion/zsh/_phpbrew
bin/phpbrew bash --bind phpbrew --program phpbrew > completion/bash/_phpbrew
test:
$(TEST)
clean:
git checkout -- $(TARGET)