diff options
Diffstat (limited to 'examples/c/mfcalc/Makefile')
-rw-r--r-- | examples/c/mfcalc/Makefile | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/examples/c/mfcalc/Makefile b/examples/c/mfcalc/Makefile index b9518089..4014dd48 100644 --- a/examples/c/mfcalc/Makefile +++ b/examples/c/mfcalc/Makefile @@ -3,12 +3,11 @@ BASE = mfcalc BISON = bison -XSLTPROC = xsltproc all: $(BASE) -%.c %.xml %.gv: %.y - $(BISON) $(BISONFLAGS) --xml --graph=$*.gv -o $*.c $< +%.c %.html %.gv: %.y + $(BISON) $(BISONFLAGS) --html --graph -o $*.c $< %: %.c $(CC) $(CFLAGS) -o $@ $< @@ -17,9 +16,5 @@ run: $(BASE) @echo "Type arithmetic expressions. Quit with ctrl-d." ./$< -html: $(BASE).html -%.html: %.xml - $(XSLTPROC) $(XSLTPROCFLAGS) -o $@ $$($(BISON) --print-datadir)/xslt/xml2xhtml.xsl $< - clean: rm -f $(BASE) $(BASE).c $(BASE).html $(BASE).xml $(BASE).gv $(BASE).output |