X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/a83994ff62065c008e290b651ea8d80f865a8fb9..a73039ebb796cbaf4204e28b2a830ff893162698:/Makefile.in diff --git a/Makefile.in b/Makefile.in index d3f8578d..456d9047 100644 --- a/Makefile.in +++ b/Makefile.in @@ -36,7 +36,7 @@ MAKEINFO = makeinfo DEFS = @DEFS@ CFLAGS = -g -LDFLAGS = -g +LDFLAGS = LIBS = @LIBS@ @@ -44,14 +44,14 @@ LIBS = @LIBS@ # the GNU alloca.o here. ALLOCA = @ALLOCA@ -prefix = /usr/local -exec_prefix = $(prefix) +prefix = @prefix@ +exec_prefix = @exec_prefix@ # where the installed binary goes bindir = $(exec_prefix)/bin # where the parsers go -datadir = $(prefix)/lib +datadir = $(prefix)/share # where the info files go infodir = $(prefix)/info @@ -70,8 +70,8 @@ DISTFILES = COPYING ChangeLog Makefile.in configure configure.in \ 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 + vmshlp.mar README INSTALL NEWS bison.texinfo bison.info* texinfo.tex \ + getopt.c getopt.h getopt1.c alloca.c mkinstalldirs install-sh SHELL = /bin/sh @@ -124,36 +124,27 @@ realclean: distclean # Most of these deps are in case using RCS. install: all bison.1 $(srcdir)/$(PFILE) $(srcdir)/$(PFILE1) installdirs uninstall $(INSTALL_PROGRAM) bison $(bindir)/bison - $(INSTALL_DATA) ./bison.s1 $(datadir)/$(PFILE) + $(INSTALL_DATA) bison.s1 $(datadir)/$(PFILE) $(INSTALL_DATA) $(srcdir)/$(PFILE1) $(datadir)/$(PFILE1) - -chmod a+r $(datadir)/$(PFILE) $(datadir)/$(PFILE1) - -$(INSTALL_DATA) $(srcdir)/bison.1 $(mandir)/bison.$(manext) - -chmod a+r $(mandir)/bison.$(manext) cd $(srcdir); for f in bison.info*; \ do $(INSTALL_DATA) $$f $(infodir)/$$f; done + -$(INSTALL_DATA) $(srcdir)/bison.1 $(mandir)/bison.$(manext) # 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 + -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) + $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJECTS) $(LIBS) dist: bison.info echo bison-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q version.c` > .fname