summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index cd9f014..1cb3bf4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 PREFIX ?= ~/.local
 MANDIR ?= ${PREFIX}/share/man
 
-CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
+CFLAGS += -std=c11 -Wall -Wextra -Wpedantic -Wno-overlength-strings
 LDLIBS = -lkcgi -lkcgihtml -lsqlite3
 
 TEST_DB = ~/.local/share/litterbox/litterbox.sqlite
@@ -24,10 +24,10 @@ scooper: ${OBJS}
 
 ${OBJS}: server.h
 
-server.o: default.css.h
+server.o: css.h
 
-default.css.h: default.css color.css
-	cat default.css color.css | file2c > $@
+css.h: css.sh default.css color.css
+	sh css.sh default.css color.css > $@
 
 test: .test
 
@@ -39,7 +39,7 @@ tags: *.c *.h
 	ctags -w *.c *.h
 
 clean:
-	rm -f scooper ${OBJS} .test tags
+	rm -f scooper ${OBJS} css.h .test tags
 
 install: scooper scooper.1
 	install -d ${PREFIX}/bin ${MANDIR}/man1