Skip to content

Commit c1e322f

Browse files
committed
added Makefile
1 parent e4b2830 commit c1e322f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Makefile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/make -f
2+
3+
all:
4+
5+
COMPOSER=./composer.phar
6+
7+
8+
# dep: Install dependencies necessary for development work on this library.
9+
dep: $(COMPOSER)
10+
[ -d vendor/ ] || $(COMPOSER) install
11+
12+
# composer.phar: Get composer binary from authoritative source
13+
$(COMPOSER):
14+
curl -sS https://getcomposer.org/installer | php
15+
16+
# update: Updates all composer dependencies of this library.
17+
update: $(COMPOSER)
18+
$(COMPOSER) update
19+
20+
# test: Executes all phpUnit tests according to the local phpunit.xml.dist file.
21+
test: dep
22+
vendor/bin/phpunit -v
23+

0 commit comments

Comments
 (0)