Skip to content

Commit a8b31c5

Browse files
committed
update package when other sources change in makefile
1 parent 7e40b39 commit a8b31c5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ build_dir=$(project_dir)/build
66
appstore_dir=$(build_dir)/appstore
77
package_name=$(app_name)
88

9-
sources=$(wildcard js/*) $(wildcard js/*/*)
9+
jssources=$(wildcard js/*) $(wildcard js/*/*)
10+
othersources=$(wildcard appinfo/*) $(wildcard css/*/*) $(wildcard controller/*/*) $(wildcard templates/*/*) $(wildcard log/*/*)
1011

1112
all: build/main.js
1213

@@ -17,13 +18,13 @@ clean:
1718
node_modules: package.json
1819
npm install --deps
1920

20-
build/main.js: node_modules $(sources)
21+
build/main.js: node_modules $(jssources)
2122
npm run build
2223

2324
appstore: clean build/main.js package
2425

2526
package: build/appstore/$(package_name).tar.gz
26-
build/appstore/$(package_name).tar.gz: build/main.js
27+
build/appstore/$(package_name).tar.gz: build/main.js $(othersources)
2728
mkdir -p $(appstore_dir)
2829
tar --exclude-vcs \
2930
--exclude=$(appstore_dir) \

0 commit comments

Comments
 (0)