Skip to content

Commit eb30f10

Browse files
committed
Improve Makefile
- Add release target - Add install-box target - Add clear target
1 parent bcaa84f commit eb30f10

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

Makefile

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
all: autoload build install
1+
all: clear autoload build
2+
3+
clear:
4+
rm -f clitools.phar
25

36
build:
47
bash compile.sh
@@ -14,3 +17,21 @@ update:
1417

1518
sloccount:
1619
sloccount src/app/ src/command.php
20+
21+
install-box:
22+
curl -LSs https://box-project.github.io/box2/installer.php | php
23+
mv box.phar /usr/local/bin
24+
25+
release: build
26+
ifndef desc
27+
@echo "Run it as 'make release desc=tralala'"
28+
else
29+
echo github-release release -u webdevops -r clitools -t "$(TAG)" -n "$(TAG)" --description "$(desc)"
30+
echo "Uploading clitools.phar" && \
31+
echo github-release upload -u webdevops \
32+
-r clitools \
33+
-t $(TAG) \
34+
-f "clitools.phar" \
35+
-n "clitools.phar"
36+
endif
37+

0 commit comments

Comments
 (0)