# Makefile for bison
-# Copyright (C) 1984, 1989, 1991 Bob Corbett and Free Software Foundation, Inc.
+# Copyright (C) 1988, 1989, 1991, 1993 Bob Corbett and Free Software Foundation, Inc.
#
# This file is part of Bison, the GNU Compiler Compiler.
#
./config.status
config.status: configure
- $(srcdir)/configure --srcdir=$(srcdir) --no-create
+ ./config.status --recheck
configure: configure.in
cd $(srcdir); autoconf
rm -f TAGS *.info*
# Most of these deps are in case using RCS.
-install: all bison.1 $(srcdir)/$(PFILE) $(srcdir)/$(PFILE1)
+install: all bison.1 $(srcdir)/$(PFILE) $(srcdir)/$(PFILE1) installdirs uninstall
$(INSTALL_PROGRAM) bison $(bindir)/bison
- -cd $(datadir); rm -f $(PFILE) $(PFILE1)
$(INSTALL_DATA) ./bison.s1 $(datadir)/$(PFILE)
$(INSTALL_DATA) $(srcdir)/$(PFILE1) $(datadir)/$(PFILE1)
-chmod a+r $(datadir)/$(PFILE) $(datadir)/$(PFILE1)
cd $(srcdir); for f in bison.info*; \
do $(INSTALL_DATA) $$f $(infodir)/$$f; done
+# Make sure all installation directories, e.g. $(bindir) actually exist by
+# making them if necessary.
+installdirs:
+ for file in $(bindir) $(datadir) $(libdir) $(infodir) $(mandir) ; do \
+ oIFS="$${IFS}"; IFS='/'; set - $${file}; IFS="$${oIFS}"; \
+ pathcomp=''; test ".$${1}" = "." && shift; \
+ while test $$# -ne 0 ; do \
+ pathcomp="$${pathcomp}/$${1}"; shift; \
+ if test ! -d "$${pathcomp}"; then \
+ echo "making directory $$pathcomp" 1>&2 ; \
+ mkdir "$${pathcomp}"; \
+ fi; \
+ done; \
+ done
+
uninstall:
rm -f $(bindir)/bison
-cd $(datadir); rm -f $(PFILE) $(PFILE1)
vmshlp.mar README INSTALL bison.texinfo bison.info* texinfo.tex \
`cat .fname`
cp -p getopt.[ch] getopt1.c alloca.c `cat .fname`
- tar chZf `cat .fname`.tar.Z `cat .fname`
+ tar --gzip -chf `cat .fname`.tar.gz `cat .fname`
-rm -rf `cat .fname` .fname
bison.info: bison.texinfo