diff options
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -10,7 +10,7 @@ LESSC := ./node_modules/less/bin/lessc | |||
10 | 10 | ||
11 | -include $(DEPFILES) | 11 | -include $(DEPFILES) |
12 | 12 | ||
13 | all: .npm_update $(CSS_FILES) $(LESS_FILES) $(JS_FILES) | 13 | all: $(CSS_FILES) $(LESS_FILES) $(JS_FILES) |
14 | 14 | ||
15 | print_info: | 15 | print_info: |
16 | @echo $(CSS_FILES) | 16 | @echo $(CSS_FILES) |
@@ -31,7 +31,7 @@ assets/css/%.css: assets_src/css/%.css | |||
31 | @mkdir -p $(@D) | 31 | @mkdir -p $(@D) |
32 | cp $< $@ | 32 | cp $< $@ |
33 | 33 | ||
34 | assets/css/%.css: assets_src/css/%.less | 34 | assets/css/%.css: assets_src/css/%.less .npm_update |
35 | mkdir -p $(@D) | 35 | mkdir -p $(@D) |
36 | @echo lessc $< > $@ | 36 | @echo lessc $< > $@ |
37 | @$(LESSC) $< > $@ | 37 | @$(LESSC) $< > $@ |
@@ -39,7 +39,7 @@ assets/css/%.css: assets_src/css/%.less | |||
39 | assets_src/js/%.d: assets_src/js/%.js | 39 | assets_src/js/%.d: assets_src/js/%.js |
40 | @./bin/generate-dependencies $(patsubst assets_src/%, assets/%, $<) $< $@ | 40 | @./bin/generate-dependencies $(patsubst assets_src/%, assets/%, $<) $< $@ |
41 | 41 | ||
42 | assets/js/%.js: assets_src/js/%.js assets_src/js/%.d .babelrc | 42 | assets/js/%.js: assets_src/js/%.js assets_src/js/%.d .babelrc .npm_update |
43 | @echo browserify $< -o $@ | 43 | @echo browserify $< -o $@ |
44 | @$(BROWSERIFY) --debug $< -o $@ -t babelify | 44 | @$(BROWSERIFY) --debug $< -o $@ -t babelify |
45 | 45 | ||
@@ -50,7 +50,7 @@ clean: | |||
50 | -rm -- $(DEPFILES) | 50 | -rm -- $(DEPFILES) |
51 | 51 | ||
52 | superclean: clean | 52 | superclean: clean |
53 | -rm -- .npm_last_update | 53 | -rm -- .npm_update |
54 | -rm -- package.json | 54 | -rm -- package.json |
55 | 55 | ||
56 | ultraclean: superclean | 56 | ultraclean: superclean |