Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/logreader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-09-14 19:03:05 +0300
committerRobin Appelman <robin@icewind.nl>2016-09-14 19:03:05 +0300
commita8b31c575fc8611ad7f7404d6048a533bd04ea29 (patch)
tree8f5afb184beeb3607bf4a826287653bf6a516a33
parent7e40b392b707c8b36a33db6bffaddaf47ac67678 (diff)
update package when other sources change in makefilev1.2.0
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 60c4b68..9f54709 100644
--- a/Makefile
+++ b/Makefile
@@ -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) \