From 5fc7e107e140b1e6bfe96a7e38c9449c6cd07025 Mon Sep 17 00:00:00 2001 From: Noah Friedman Date: Fri, 7 May 1993 09:54:20 +0000 Subject: [PATCH] *** empty log message *** --- Makefile.in | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index b4dfc04e..c1eea2b0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -110,9 +110,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) uninstall installdirs $(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,6 +120,21 @@ 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: + 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) -- 2.45.2