Makefile 552 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
all:
	@echo "Run 'make imageoptim' to losslessly optimise all images"
	@echo "Run 'make minaccept' to run the quick pre-commit tests"
	@echo "Run 'make push' to push your changes to the repo"

imageoptim:
	find . -iname '*.png' -exec optipng -o7 -q {} \;
	find . -iname '*.gif' -exec gifsicle -O2 -b {} \;
	find . -iname '*.jpg' -exec jpegoptim -q -p --strip-all {} \;
	find . -iname '*.jpeg' -exec jpegoptim -q -p --strip-all {} \;

minaccept:
13
	@find htdocs/ -type f -name "*.php" | xargs -n 1 -P 2 php -l && echo All good!
14 15 16

push: minaccept
	git push