$NetBSD: patch-ab,v 1.4 2003/06/29 22:24:33 jtb Exp $ --- Makefile.in.orig +++ Makefile.in @@ -461,31 +461,17 @@ install: install-exe @INSTALL_MAN@ install-lisp install-exe: ftnchek$(EXE) dcl2inc$(CMD) - -$(RM) $(bindir)/ftnchek$(EXE) - -$(MKDIR) -p $(bindir) - $(CP) ftnchek$(EXE) $(bindir) - -$(STRIP) $(bindir)/ftnchek$(EXE) - $(CHMOD) 755 $(bindir)/ftnchek$(EXE) - -$(MKDIR) -p $(libdir) - $(CP) dcl2inc.awk $(libdir)/dcl2inc.awk - $(CHMOD) 644 $(libdir)/dcl2inc.awk - $(CP) dcl2inc$(CMD) $(bindir)/dcl2inc$(CMD) - $(CHMOD) 755 $(bindir)/dcl2inc$(CMD) - -$(RM) $(bindir)/fcl2vcg + $(BSD_INSTALL_PROGRAM) ftnchek$(EXE) $(bindir) + $(BSD_INSTALL_DATA_DIR) $(libdir) + $(BSD_INSTALL_DATA) dcl2inc.awk $(libdir) + $(BSD_INSTALL_SCRIPT) dcl2inc$(CMD) $(bindir) # Install man pages, taking care to remove old formatted ones, because # many man implentations fail to compare time stamps of raw and # formatted files, and will show out-of-date formatted files. install-man: ftnchek$(manext) - -$(MKDIR) -p $(mandir)/man1 - $(CP) dcl2inc.man $(mandir)/man1/dcl2inc$(manext) - -$(RM) $(mandir)/cat1/dcl2inc$(manext) - $(CHMOD) 644 $(mandir)/man1/dcl2inc$(manext) - $(CP) ftnchek$(manext) $(mandir)/man1/ftnchek$(manext) - -$(RM) $(mandir)/cat1/ftnchek$(manext) - $(CHMOD) 644 $(mandir)/man1/ftnchek$(manext) - -$(RM) $(mandir)/man1/fcl2vcg$(manext) - -$(RM) $(mandir)/cat1/fcl2vcg$(manext) + $(BSD_INSTALL_MAN) dcl2inc.man $(mandir)/man1/dcl2inc$(manext) + $(BSD_INSTALL_MAN) ftnchek$(manext) $(mandir)/man1/ftnchek$(manext) # IRIX uses pre-formatted, packed man pages and nroff is not bundled with it. install-man-sgi: catman @@ -528,23 +514,8 @@ # The emacs lisp file will be installed only if lispdir exists. It will # be byte-compiled if emacs is present. install-lisp: - @if test -d "$(lispdir)" ; \ - then \ - echo $(CP) ftnchek.el $(lispdir)/ftnchek.el ; \ - if $(CP) ftnchek.el $(lispdir)/ftnchek.el ; \ - then \ - if test -x "$(EMACS)" ; \ - then \ - $(EMACS) -batch -f batch-byte-compile $(lispdir)/ftnchek.el ; \ - else \ - echo "If desired, use emacs to byte-compile $(lispdir)/ftnchek.el"; \ - fi \ - fi \ - else \ - echo "$(lispdir) does not exist -- ftnchek.el not installed." ; \ - echo "If you want to install ftnchek.el, create $(lispdir)" ; \ - echo "or re-run make install with 'lispdir=path-to-site-lisp'" ; \ - fi + $(BSD_INSTALL_DATA_DIR) $(lispdir) + $(BSD_INSTALL_DATA) ftnchek.el $(lispdir) # Remove everything that the install target installed. uninstall: