diff options
author | Robin Appelman <robin@icewind.nl> | 2016-09-14 19:03:05 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-09-14 19:03:05 +0300 |
commit | a8b31c575fc8611ad7f7404d6048a533bd04ea29 (patch) | |
tree | 8f5afb184beeb3607bf4a826287653bf6a516a33 | |
parent | 7e40b392b707c8b36a33db6bffaddaf47ac67678 (diff) |
update package when other sources change in makefilev1.2.0
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -6,7 +6,8 @@ build_dir=$(project_dir)/build appstore_dir=$(build_dir)/appstore package_name=$(app_name) -sources=$(wildcard js/*) $(wildcard js/*/*) +jssources=$(wildcard js/*) $(wildcard js/*/*) +othersources=$(wildcard appinfo/*) $(wildcard css/*/*) $(wildcard controller/*/*) $(wildcard templates/*/*) $(wildcard log/*/*) all: build/main.js @@ -17,13 +18,13 @@ clean: node_modules: package.json npm install --deps -build/main.js: node_modules $(sources) +build/main.js: node_modules $(jssources) npm run build appstore: clean build/main.js package package: build/appstore/$(package_name).tar.gz -build/appstore/$(package_name).tar.gz: build/main.js +build/appstore/$(package_name).tar.gz: build/main.js $(othersources) mkdir -p $(appstore_dir) tar --exclude-vcs \ --exclude=$(appstore_dir) \ |