-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (29 loc) · 862 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
TAG ?= $(shell git describe --tags)
all: clean autoload build
clean:
rm -rf clitools.phar src/vendor/
build:
bash compile.sh
install:
cp clitools.phar /usr/local/bin/ct
autoload:
sh -c "cd src ; composer dump-autoload --optimize --no-dev"
update:
sh -c "cd src ; composer update"
sloccount:
sloccount src/app/ src/command.php
install-box:
curl -LSs https://box-project.github.io/box2/installer.php | php
mv box.phar /usr/local/bin
release: all
ifndef desc
@echo "Run it as 'make release desc=tralala'"
else
github-release release -u webdevops -r clitools -t "$(TAG)" -n "$(TAG)" --description "$(desc)"
echo "Uploading clitools.phar" && \
github-release upload -u webdevops \
-r clitools \
-t $(TAG) \
-f "clitools.phar" \
-n "clitools.phar"
endif