jsonedit/Makefile

10 lines
311 B
Makefile

.PHONY: jsonedit.phar
jsonedit.phar: composer
echo "<?php return [ 'version' => \"v$(shell git describe --tags)\", 'builddate' => \"$(shell LC_ALL=C date)\" ];" > src/build.php \
&& box compile \
&& rm src/build.php \
&& mv bin/jsonedit.phar .
.PHONY: composer
composer:
test -d vendor || composer install