summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-29 15:18:23 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-29 15:18:23 +0200
commit14ce1445b1ba24e6a16646302167b2aeb7d4fff6 (patch)
tree2854f95a874c5c9958112ecdb4f973b89ed72193 /Makefile
parentc8e70c43ebbc1ad249aa1a40c2d522a93ce427fa (diff)
Add watch to makefile, fix watch and kill coffeescript
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1d6e2c98..50a5b421 100644
--- a/Makefile
+++ b/Makefile
@@ -171,3 +171,13 @@ else
phpunit -c phpunit.xml --coverage-clover build/php-unit.clover
phpunit -c phpunit.integration.xml --coverage-clover build/php-unit.clover
endif
+
+# watch out for changes and rebuild
+.PHONY: watch
+watch:
+ifneq (,$(wildcard $(CURDIR)/js/package.json))
+ cd js && $(npm) run watch
+endif
+ifneq (,$(wildcard $(CURDIR)/package.json))
+ $(npm) run watch
+endif