aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 754b1e4..873886a 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@ IMPORTER_FILES = $(shell find tools/importer/ -type f -name '*.go')
7CSS_FILES = $(patsubst assets_src/%, assets/%, $(shell find assets_src/css/ -type f -name '*.css')) 7CSS_FILES = $(patsubst assets_src/%, assets/%, $(shell find assets_src/css/ -type f -name '*.css'))
8LESS_FILES = $(patsubst assets_src/%.less, assets/%.css, $(shell find assets_src/css/ -type f -name '*.less')) 8LESS_FILES = $(patsubst assets_src/%.less, assets/%.css, $(shell find assets_src/css/ -type f -name '*.less'))
9JS_FILES = $(patsubst assets_src/%, assets/%, $(shell find assets_src/js/ -maxdepth 1 -type f -name '*.js')) 9JS_FILES = $(patsubst assets_src/%, assets/%, $(shell find assets_src/js/ -maxdepth 1 -type f -name '*.js'))
10IMG_FILES = $(patsubst assets_src/%, assets/%, $(shell find assets_src/img/ -maxdepth 1 -type f))
10DEPFILES = $(patsubst assets/%, assets_src/%, $(JS_FILES:.js=.d)) 11DEPFILES = $(patsubst assets/%, assets_src/%, $(JS_FILES:.js=.d))
11 12
12BROWSERIFY := ./node_modules/browserify/bin/cmd.js 13BROWSERIFY := ./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
39assets: $(CSS_FILES) $(LESS_FILES) $(JS_FILES) 40assets: $(CSS_FILES) $(LESS_FILES) $(JS_FILES) $(IMG_FILES)
41
42assets/img/%: assets_src/img/%
43 @mkdir -p $(@D)
44 cp $< $@
40 45
41assets/css/%.css: assets_src/css/%.css 46assets/css/%.css: assets_src/css/%.css
42 @mkdir -p $(@D) 47 @mkdir -p $(@D)