summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2017-05-07 14:21:27 +0200
committerDaniel Carl <danielcarl@gmx.de>2017-05-07 14:32:30 +0200
commit3b9bf50b4cbcf5b4b78cec47fe2454ba6493aa59 (patch)
tree72b3e05ad9fcdf4b9343f766d9dd481f3b0718a6 /src/Makefile
parent746a74af99ef35af21d75432f1a1050dae0a3c7c (diff)
Set hint css vie web content manager #349.
Add the hint css direct to webkit instead of manipulating the DOM to add a style node. By the way the default style was removed from config.def.h into src/scripts directory so that the css is minified during compilation.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 50e267d..f60d2ce 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -4,6 +4,7 @@ include $(BASEDIR)/config.mk
SUBDIRS = webextension
OBJ = $(patsubst %.c, %.o, $(wildcard *.c))
JSFILES = $(wildcard scripts/*.js)
+CSSFILES = $(wildcard scripts/*.css)
all: vimb $(SUBDIRS:%=%.subdir-all)
@@ -22,10 +23,10 @@ config.h:
@echo create $@ from config.def.h
$(Q)cp config.def.h $@
-scripts/scripts.h: $(JSFILES)
+scripts/scripts.h: $(JSFILES) $(CSSFILES)
$(Q)$(RM) $@
- @echo "create $@ from *.js"
- $(Q)for file in $(JSFILES); do \
+ @echo "create $@ from *.{css,js}"
+ $(Q)for file in $(JSFILES) $(CSSFILES); do \
./scripts/js2h.sh $$file >> $@; \
done