Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 42 lines (30 sloc) 741 Bytes
MAKEFLAGS = --no-print-directory --always-make
MAKE = make $(MAKEFLAGS)
DIRDOCS = docs
DIRTESTS = tests
DIRLIB = lib
VERSION = v1.0
PHPDOC = phpdoc -t $(DIRDOCS) -o HTML:default:default -d $(DIRLIB)
PHPUNIT = cd $(DIRTESTS); phpunit --configuration phpunit.xml --verbose; cd ..;
all:
$(MAKE) tests
$(MAKE) docs
docs:
rm -Rf $(DIRDOCS)/*
$(PHPDOC)
dev:
git checkout dev;
stable:
git checkout $(VERSION);
doc:
open $(DIRDOCS)/index.html
tests:
rm -Rf $(DIRTESTS)/log/*
mkdir $(DIRTESTS)/log/report
$(PHPUNIT)
report:
open $(DIRTESTS)/log/report/index.html
add:
git add .gitignore .htaccess * ;
deploy:
git checkout $(VERSION); git merge dev; git checkout master; git merge $(VERSION); git checkout dev; git push --all;