]> git.saurik.com Git - bison.git/blobdiff - Makefile.in
*** empty log message ***
[bison.git] / Makefile.in
index 9dfe18441912f428ca55288db5533498a4be6635..001cf325a0cb0a6bd30f3f3d87bd3d6b1221f8c9 100644 (file)
@@ -1,5 +1,5 @@
 # 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.
 # 
@@ -62,6 +62,18 @@ manext = 1
 
 #### End of system configuration section. ####
 
+DISTFILES = COPYING ChangeLog Makefile.in configure configure.in \
+    REFERENCES bison.1 bison.rnh configure.bat \
+    bison.simple bison.hairy \
+    LR0.c allocate.c closure.c conflicts.c derives.c \
+    files.c getargs.c gram.c lalr.c lex.c main.c nullable.c \
+    output.c print.c reader.c reduce.c symtab.c version.c \
+    warshall.c files.h gram.h lex.h machine.h new.h state.h \
+    symtab.h system.h types.h bison.cld build.com vmsgetargs.c \
+    vmshlp.mar README INSTALL bison.texinfo bison.info* texinfo.tex \
+    getopt.c getopt.h getopt1.c alloca.c mkinstalldirs
+
+
 SHELL = /bin/sh
 
 # This rule allows us to supply the necessary -D options
@@ -88,7 +100,7 @@ Makefile: Makefile.in config.status
        ./config.status
 
 config.status: configure
-       $(srcdir)/configure --srcdir=$(srcdir) --no-create
+       ./config.status --recheck
 
 configure: configure.in
        cd $(srcdir); autoconf
@@ -110,9 +122,8 @@ realclean: distclean
        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) 
@@ -121,11 +132,19 @@ install: all bison.1 $(srcdir)/$(PFILE) $(srcdir)/$(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:
+       -sh $(srcdir)/mkinstalldirs $(bindir) $(datadir) $(libdir) $(infodir) $(mandir)
+
 uninstall:
        rm -f $(bindir)/bison
        -cd $(datadir); rm -f $(PFILE) $(PFILE1)
        rm -f $(mandir)/bison.$(manext) $(infodir)/bison.info*
 
+check:
+       @echo "No checks implemented (yet)."
+
 bison: $(OBJECTS)
        $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
 
@@ -133,18 +152,10 @@ dist: bison.info
        echo bison-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q version.c` > .fname
        -rm -rf `cat .fname`
        mkdir `cat .fname`
-       ln  COPYING ChangeLog Makefile.in configure configure.in \
-           REFERENCES bison.1 bison.rnh configure.bat \
-           bison.simple bison.hairy \
-           LR0.c allocate.c closure.c conflicts.c derives.c \
-           files.c getargs.c gram.c lalr.c lex.c main.c nullable.c \
-           output.c print.c reader.c reduce.c symtab.c version.c \
-           warshall.c files.h gram.h lex.h machine.h new.h state.h \
-           symtab.h system.h types.h bison.cld build.com vmsgetargs.c \
-           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`
+       dst=`cat .fname`; for f in $(DISTFILES); do \
+          ln $(srcdir)/$$f $$dst/$$f || { echo copying $$f; cp -p $(srcdir)/$$f $$dst/$$f ; } \
+       done
+       tar --gzip -chf `cat .fname`.tar.gz `cat .fname`
        -rm -rf `cat .fname` .fname
 
 bison.info: bison.texinfo