summaryrefslogtreecommitdiff
path: root/examples/c/rpcalc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/c/rpcalc/Makefile')
-rw-r--r--examples/c/rpcalc/Makefile9
1 files changed, 2 insertions, 7 deletions
diff --git a/examples/c/rpcalc/Makefile b/examples/c/rpcalc/Makefile
index 624f247b..23ea410c 100644
--- a/examples/c/rpcalc/Makefile
+++ b/examples/c/rpcalc/Makefile
@@ -3,12 +3,11 @@
BASE = rpcalc
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 in Reverse Polish Notation. 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