summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-13 18:14:22 -0400
committerJune McEnroe <june@causal.agency>2020-07-13 18:14:22 -0400
commitc1dfd0bb139f58a9f34dbfc61920b59df00c70c1 (patch)
tree47163cbba95f5e850179a0a8b78e9a00f2ea9c7c /Makefile
parentAdd room to start selecting table rows (diff)
downloadscooper-c1dfd0bb139f58a9f34dbfc61920b59df00c70c1.tar.gz
scooper-c1dfd0bb139f58a9f34dbfc61920b59df00c70c1.zip
Incorporate CSS into C without file2c
It's a shame file2c is not available everywhere.
Diffstat (limited to '')
-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