Bind examples/calc++ to the package.

* examples/calc++/Makefile: Remove, replaced by...
* examples/calc++/Makefile.am: ... this new file.
* examples/calc++/test: Remove input.
* examples/calc++/compile: Remove.
* examples/Makefile.am: New.
* configure.ac, Makefile.am: Adjust.
* doc/Makefile.am (clean-local): New, for more recent texi2dvis.
This commit is contained in:
Akim Demaille
2005-07-06 07:49:25 +00:00
parent fd2df2ede4
commit 828c373b6d
12 changed files with 136 additions and 50 deletions

View File

@@ -1,35 +0,0 @@
all: calc++
calc++:
flex -ocalc++-scanner.cc calc++-scanner.ll
bison -o calc++-parser.cc calc++-parser.yy
$(CC) -o calc++ calc++.cc calc++-driver.cc calc++-parser.cc calc++-scanner.cc
check: all
./test
clean:
rm -f *~ *.o *.tab.* input position.hh location.hh stack.hh \
calc++-parser.cc calc++-parser.hh \
calc++-scanner.cc \
calc++
## ------------ ##
## Extracting. ##
## ------------ ##
EXTRACTED = \
calc++-driver.hh calc++-driver.cc \
calc++-parser.yy \
calc++-scanner.ll \
calc++.cc
doc = ../../doc/bison.texinfo
extexi = gawk -f ../extexi
RECURSIVE_TARGETS += extract
$(EXTRACTED): $(doc) ../extexi
$(extexi) $(doc) -- $(EXTRACTED)
extract extract-am: $(EXTRACTED)