mirror of
https://github.com/okdana/twigc.git
synced 2024-05-09 00:46:32 +02:00
Makefile: Improve install target, update phonies
This commit is contained in:
parent
3a89dfaf37
commit
5de5948cdd
7
Makefile
7
Makefile
|
@ -4,6 +4,9 @@
|
||||||
# @author dana <dana@dana.is>
|
# @author dana <dana@dana.is>
|
||||||
# @license MIT
|
# @license MIT
|
||||||
|
|
||||||
|
prefix ?= /usr/local
|
||||||
|
bindir ?= $(prefix)/bin
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
build: phar
|
build: phar
|
||||||
phar: clean twigc.phar
|
phar: clean twigc.phar
|
||||||
|
@ -40,7 +43,7 @@ test-integration: twigc.phar
|
||||||
echo 'hello {{ name }}' | ./twigc.phar -p name=foo | grep -qF 'hello foo'
|
echo 'hello {{ name }}' | ./twigc.phar -p name=foo | grep -qF 'hello foo'
|
||||||
|
|
||||||
install: twigc.phar
|
install: twigc.phar
|
||||||
cp twigc.phar /usr/local/bin/twigc
|
cp twigc.phar $(DESTDIR)$(bindir)/twigc
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f twigc.phar
|
rm -f twigc.phar
|
||||||
|
@ -48,4 +51,4 @@ clean:
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -rf vendor/
|
rm -rf vendor/
|
||||||
|
|
||||||
.PHONY: all clean distclean install test test-integration test-unit
|
.PHONY: all build clean distclean help install phar test test-integration test-unit
|
||||||
|
|
Loading…
Reference in a new issue