include ../config.mk
OBJ = $(patsubst %.c, %.o, $(wildcard *.c))
+JSFILES = $(wildcard scripts/*.js)
+CSSFILES = $(wildcard scripts/*.css)
all: vimb webextension.subdir-all
clean: webextension.subdir-clean
$(RM) vimb $(OBJ)
+ $(RM) scripts/scripts.h
vimb: $(OBJ)
@echo "${CC} $@"
setting.o: scripts/scripts.h
-scripts/scripts.h: scripts.subdir-all
+scripts/scripts.h: $(JSFILES) $(CSSFILES)
+ $(Q)$(RM) $@
+ @echo "create $@ from *.{css,js}"
+ $(Q)for file in $(JSFILES) $(CSSFILES); do \
+ ./scripts/js2h.sh $$file >> $@; \
+ done
config.h:
@echo create $@ from config.def.h
+++ /dev/null
-include ../../config.mk
-
-JSFILES = $(wildcard *.js)
-CSSFILES = $(wildcard *.css)
-
-all: scripts.h
-
-clean:
- $(RM) scripts.h
-
-scripts.h: $(JSFILES) $(CSSFILES)
- $(Q)$(RM) $@
- @echo "create $@ from *.{css,js}"
- $(Q)for file in $(JSFILES) $(CSSFILES); do \
- ./js2h.sh $$file >> $@; \
- done
-
-.PHONY: all clean