]> Pileus Git - ~andy/ct/blobdiff - mkfile
I forget what these changes do
[~andy/ct] / mkfile
diff --git a/mkfile b/mkfile
index 8f43ffdd6ad3852952231850bdec3bd993827174..ab461944c26fc57587d257a0d29c954aeec544b6 100644 (file)
--- a/mkfile
+++ b/mkfile
@@ -1,11 +1,15 @@
-PROGS=ct
+PROGS=ct lib
 PKGS=glib-2.0
-ct-test:V: ct
+default:V: all
+lib-run:V: lib
+       ./lib
+ct-run:V: ct
        ./ct < example/html.ct
-ct: ct.o scan.o parse.o parse.h
-%.c: %.l
-       flex -o $target $prereq
-%.h %.c: %.y
-       bison -d -o $stem.c $stem.y
+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