fixes regeneration of scripts.h
authorRobert Timm <mail@rtti.de>
Fri, 7 Apr 2017 22:41:10 +0000 (00:41 +0200)
committerRobert Timm <mail@rtti.de>
Fri, 7 Apr 2017 22:41:10 +0000 (00:41 +0200)
without this patch, the make target would keep appending updated js code
to scripts.h and therefor create multiple instances of the C defines.

src/Makefile

index 5ec16d8..d9c3d4d 100644 (file)
@@ -22,6 +22,7 @@ config.h:
        @cp config.def.h $@
 
 scripts/scripts.h: $(JSFILES)
+       $(RM) $@
        @echo "create $@ from *.js"
        @for file in $(JSFILES); do \
                ./scripts/js2h.sh $$file >> $@; \