aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile29
-rw-r--r--assets_src/css/gril.css (renamed from assets/css/gril.css)0
-rw-r--r--assets_src/css/list.css (renamed from assets/css/list.css)0
-rw-r--r--assets_src/css/search.css (renamed from assets/css/search.css)0
-rw-r--r--assets_src/js/list.js (renamed from assets/js/list.js)0
-rw-r--r--assets_src/js/search.js (renamed from assets/js/search.js)0
6 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..50d02c1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
1CSS_FILES := $(shell find assets_src/css/ -maxdepth 1 -type f -name '*.css')
2CSS_FILES := $(addprefix assets/, $(CSS_FILES:assets_src/%=%))
3LESS_FILES := $(shell find assets_src/css/ -maxdepth 1 -type f -name '*.less')
4LESS_FILES := $(addprefix assets/, $(LESS_FILES:assets_src/%=%))
5LESS_FILES := $(LESS_FILES:.less=.css)
6JS_FILES := $(shell find assets_src/js/ -maxdepth 1 -type f -name '*.js')
7JS_FILES := $(addprefix assets/, $(JS_FILES:assets_src/%=%))
8
9all: $(CSS_FILES) $(LESS_FILES) $(JS_FILES)
10
11assets/css/%.css: assets_src/css/%.css
12 cp $< $@
13
14assets/js/%.css: assets_src/css/%.less
15 lessc $< > $@
16
17assets/js/%.js: assets_src/css/%.js
18 babel $< -o $@
19
20clean:
21 -rm -- $(CSS_FILES)
22 -rm -- $(LESS_FILES)
23 -rm -- $(JS_FILES)
24
25run: all
26 go run *.go
27
28.PHONY: all clear run
29
diff --git a/assets/css/gril.css b/assets_src/css/gril.css
index b82e2c7..b82e2c7 100644
--- a/assets/css/gril.css
+++ b/assets_src/css/gril.css
diff --git a/assets/css/list.css b/assets_src/css/list.css
index 7e6dde9..7e6dde9 100644
--- a/assets/css/list.css
+++ b/assets_src/css/list.css
diff --git a/assets/css/search.css b/assets_src/css/search.css
index 124a378..124a378 100644
--- a/assets/css/search.css
+++ b/assets_src/css/search.css
diff --git a/assets/js/list.js b/assets_src/js/list.js
index 25ff80d..25ff80d 100644
--- a/assets/js/list.js
+++ b/assets_src/js/list.js
diff --git a/assets/js/search.js b/assets_src/js/search.js
index 0cb33df..0cb33df 100644
--- a/assets/js/search.js
+++ b/assets_src/js/search.js