aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-03 13:27:20 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-03 13:27:20 +0100
commit1fd1232450a215a37915e3657964f2dad7ce72d6 (patch)
tree907cb87e027c12ffd550081513340db5aef3589a /Makefile
parentMade .x files secoundary in makefile. (diff)
downloadcalp-1fd1232450a215a37915e3657964f2dad7ce72d6.tar.gz
calp-1fd1232450a215a37915e3657964f2dad7ce72d6.tar.xz
Add graphviz output for TRIE's.
Add simple output in dot format for trie structures. Along with a slightly updated main which handles a few more command line arguments. Also updated makefile to generate pdf's from dot files and dot-files from parse.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e1448eee..cea10f18 100644
--- a/Makefile
+++ b/Makefile
@@ -41,6 +41,14 @@ $(OBJDIR):
libguile-calendar.so: $(O_FILES)
$(CC) -shared -o $@ $^ $(LDFLAGS)
+CALDIR = cal
+.SECONDARY += %.dot
+%.dot: parse
+ ./parse $(CALDIR) -g $@
+
+%.pdf: %.dot
+ dot -Tpdf -o $@ $<
+
clean:
-rm parse
-rm $(OBJDIR)/*.o