(LDFLAGS): Set to @LDFLAGS@.
(configure): Run autoconf only if preceding `cd' succeeds.
(bison.s1): Redirect output to temporary file then move the
temporary to the target, rather than redirecting directly to bison.s1.
(clean): Remove config.status and config.log.
(distclean): Don't remove config.status here.
# -DHAVE_STRERROR If you have strerror function.
DEFS = @DEFS@
# -DHAVE_STRERROR If you have strerror function.
DEFS = @DEFS@
+CFLAGS = @CFLAGS@
+LDFLAGS = @LDFLAGS@
all: bison bison.info bison.s1
all: bison bison.info bison.s1
-Makefile: Makefile.in config.status
- ./config.status
+Makefile: config.status Makefile.in
+ CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
config.status: configure
./config.status --recheck
configure: configure.in
config.status: configure
./config.status --recheck
configure: configure.in
+ cd $(srcdir) && autoconf
# Copy bison.simple, inserting directory name into the #line commands.
bison.s1: bison.simple
-rm -f bison.s1
# Copy bison.simple, inserting directory name into the #line commands.
bison.s1: bison.simple
-rm -f bison.s1
- sed -e "/^#line/ s|bison|$(datadir)/bison|" < $(srcdir)/$(PFILE) > bison.s1
+ sed -e "/^#line/ s|bison|$(datadir)/bison|" < $(srcdir)/$(PFILE) > $@-tmp
+ mv $@-tmp $@
- rm -f *.o core bison bison.s1
+ rm -f *.o core bison bison.s1 config.status config.log
mostlyclean: clean
distclean: clean
mostlyclean: clean
distclean: clean
- rm -f Makefile config.status
realclean: distclean
rm -f TAGS *.info*
realclean: distclean
rm -f TAGS *.info*