]> Pileus Git - ~andy/ct/blobdiff - mkfile
Add knot
[~andy/ct] / mkfile
diff --git a/mkfile b/mkfile
index 0d3a704dd847a8971e75c988068576536fa795f0..cbbaef13007119ffa230cba11d0135fa96599e9f 100644 (file)
--- a/mkfile
+++ b/mkfile
@@ -1,10 +1,15 @@
+PROGS=ct lib
 PKGS=glib-2.0
-PROGS=test
-default:V: test
-       #cat test.c
-       ./test
-test: test.o lib.o
-lib.c: lib.ct tmpl.awk
-       ./tmpl.awk <lib.ct >lib.c
-       ex +'norm gg=G' +'wq' lib.c
+default:V: run
+lib-run:V: lib
+       ./lib
+ct-run:V: ct
+       ./ct < example/html.ct
+ct: ct.o parse.o scan.o
+ct.o: parse.h
+parse.h parse.c: parse.y
+       bison -d -o parse.c parse.y
+scan.c: scan.l parse.h
+       flex -o scan.c scan.l
+CLEAN=parse.h parse.c scan.c
 <$HOME/lib/mkcommon