diff options
author | jan <jan@ruken.pw> | 2016-10-11 13:59:47 (UTC) |
---|---|---|
committer | jan <jan@ruken.pw> | 2016-10-11 13:59:47 (UTC) |
commit | 738b5027d664258ca8efbfe3d7eeea31d621535f (patch) | |
tree | 0f698864ffff9ee829f516009993cd2c211b9fa2 | |
parent | 8cb799463ed0117091f0f9b1abea5eb6722aaa59 (diff) |
NAME variable verwenden
-rw-r--r-- | Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,7 +1,6 @@ | |||
1 | include config.mk | 1 | include config.mk |
2 | 2 | ||
3 | BINARY_PATH=./bin | 3 | BINARY_PATH=./bin |
4 | APP_NAME=grilist | ||
5 | IMPORTER_FILES = $(shell find tools/importer/ -type f -name '*.go') | 4 | IMPORTER_FILES = $(shell find tools/importer/ -type f -name '*.go') |
6 | 5 | ||
7 | CSS_FILES = $(patsubst assets_src/%, assets/%, $(shell find assets_src/css/ -type f -name '*.css')) | 6 | CSS_FILES = $(patsubst assets_src/%, assets/%, $(shell find assets_src/css/ -type f -name '*.css')) |
@@ -23,7 +22,7 @@ print_info: | |||
23 | @echo $(DEPFILES) | 22 | @echo $(DEPFILES) |
24 | 23 | ||
25 | app: | 24 | app: |
26 | go build -o $(BINARY_PATH)/$(APP_NAME) | 25 | go build -o $(BINARY_PATH)/$(NAME) |
27 | 26 | ||
28 | .npm_update: package.json | 27 | .npm_update: package.json |
29 | touch $@ | 28 | touch $@ |
@@ -53,7 +52,7 @@ assets/js/%.js: assets_src/js/%.js assets_src/js/%.d .babelrc .npm_update | |||
53 | @$(BROWSERIFY) --debug $< -o $@ -t babelify | 52 | @$(BROWSERIFY) --debug $< -o $@ -t babelify |
54 | 53 | ||
55 | clean: | 54 | clean: |
56 | -rm -- $(BINARY_PATH)/$(APP_NAME) | 55 | -rm -- $(BINARY_PATH)/$(NAME) |
57 | -rm -- $(CSS_FILES) | 56 | -rm -- $(CSS_FILES) |
58 | -rm -- $(LESS_FILES) | 57 | -rm -- $(LESS_FILES) |
59 | -rm -- $(JS_FILES) | 58 | -rm -- $(JS_FILES) |