chiark / gitweb /
Add a small README for people cloning this repo.
[matchsticks-search.git] / Makefile
index 5443d23e6f53d34bdca5515d5fd12655f3bac2e2..26fa92b5b3fe991293ebc62403d1a7d654387cd6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,16 @@
-CFLAGS += -Wall -Wwrite-strings -Wstrict-prototypes -g -O2 -std=gnu99 -lm
+CFLAGS += -Wall -Wwrite-strings -Wstrict-prototypes -g -O2 -std=gnu99
+CFLAGS += $(CMDLINE_CFLAGS)
+CPPFLAGS += -DVERSION="\"`git describe --tags --dirty=+`\""
 LC_CTYPE=C
-LDLIBS = -lpub -lglpk
+LDLIBS = -lpub -lglpk -lm
 
 all: main
+
+index.html: tabulate.py $(wildcard data/*)
+       ./tabulate.py > $@
+
+test: test.pl main
+       ./test.pl
+
+clean:
+       rm -f main