diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -7,6 +7,7 @@ IMPORTER_FILES = $(shell find tools/importer/ -type f -name '*.go') | |||
7 | CSS_FILES = $(patsubst assets_src/%, assets/%, $(shell find assets_src/css/ -type f -name '*.css')) | 7 | CSS_FILES = $(patsubst assets_src/%, assets/%, $(shell find assets_src/css/ -type f -name '*.css')) |
8 | LESS_FILES = $(patsubst assets_src/%.less, assets/%.css, $(shell find assets_src/css/ -type f -name '*.less')) | 8 | LESS_FILES = $(patsubst assets_src/%.less, assets/%.css, $(shell find assets_src/css/ -type f -name '*.less')) |
9 | JS_FILES = $(patsubst assets_src/%, assets/%, $(shell find assets_src/js/ -maxdepth 1 -type f -name '*.js')) | 9 | JS_FILES = $(patsubst assets_src/%, assets/%, $(shell find assets_src/js/ -maxdepth 1 -type f -name '*.js')) |
10 | IMG_FILES = $(patsubst assets_src/%, assets/%, $(shell find assets_src/img/ -maxdepth 1 -type f)) | ||
10 | DEPFILES = $(patsubst assets/%, assets_src/%, $(JS_FILES:.js=.d)) | 11 | DEPFILES = $(patsubst assets/%, assets_src/%, $(JS_FILES:.js=.d)) |
11 | 12 | ||
12 | BROWSERIFY := ./node_modules/browserify/bin/cmd.js | 13 | BROWSERIFY := ./node_modules/browserify/bin/cmd.js |
@@ -36,7 +37,11 @@ package.json: package.json.tpl config.mk | |||
36 | export VERSION=$(VERSION) &&\ | 37 | export VERSION=$(VERSION) &&\ |
37 | $(BINARY_PATH)/template.awk < $< | sh > $@ | 38 | $(BINARY_PATH)/template.awk < $< | sh > $@ |
38 | 39 | ||
39 | assets: $(CSS_FILES) $(LESS_FILES) $(JS_FILES) | 40 | assets: $(CSS_FILES) $(LESS_FILES) $(JS_FILES) $(IMG_FILES) |
41 | |||
42 | assets/img/%: assets_src/img/% | ||
43 | @mkdir -p $(@D) | ||
44 | cp $< $@ | ||
40 | 45 | ||
41 | assets/css/%.css: assets_src/css/%.css | 46 | assets/css/%.css: assets_src/css/%.css |
42 | @mkdir -p $(@D) | 47 | @mkdir -p $(@D) |