| @@ -1,68 +1,87 @@ | | | @@ -1,68 +1,87 @@ |
1 | $NetBSD: patch-ab,v 1.4 2003/06/29 22:24:33 jtb Exp $ | | 1 | $NetBSD: patch-ab,v 1.5 2009/12/17 21:27:32 abs Exp $ |
2 | | | 2 | |
3 | --- Makefile.in.orig | | 3 | --- Makefile.in.orig 2003-03-20 22:07:55.000000000 +0000 |
4 | +++ Makefile.in | | 4 | +++ Makefile.in |
5 | @@ -461,31 +461,17 @@ | | 5 | @@ -461,45 +461,31 @@ average.out: ftnchek.h |
6 | install: install-exe @INSTALL_MAN@ install-lisp | | 6 | install: install-exe @INSTALL_MAN@ install-lisp |
7 | | | 7 | |
8 | install-exe: ftnchek$(EXE) dcl2inc$(CMD) | | 8 | install-exe: ftnchek$(EXE) dcl2inc$(CMD) |
9 | - -$(RM) $(bindir)/ftnchek$(EXE) | | 9 | - -$(RM) $(bindir)/ftnchek$(EXE) |
10 | - -$(MKDIR) -p $(bindir) | | 10 | - -$(MKDIR) -p $(bindir) |
11 | - $(CP) ftnchek$(EXE) $(bindir) | | 11 | - $(CP) ftnchek$(EXE) $(bindir) |
12 | - -$(STRIP) $(bindir)/ftnchek$(EXE) | | 12 | - -$(STRIP) $(bindir)/ftnchek$(EXE) |
13 | - $(CHMOD) 755 $(bindir)/ftnchek$(EXE) | | 13 | - $(CHMOD) 755 $(bindir)/ftnchek$(EXE) |
14 | - -$(MKDIR) -p $(libdir) | | 14 | - -$(MKDIR) -p $(libdir) |
15 | - $(CP) dcl2inc.awk $(libdir)/dcl2inc.awk | | 15 | - $(CP) dcl2inc.awk $(libdir)/dcl2inc.awk |
16 | - $(CHMOD) 644 $(libdir)/dcl2inc.awk | | 16 | - $(CHMOD) 644 $(libdir)/dcl2inc.awk |
17 | - $(CP) dcl2inc$(CMD) $(bindir)/dcl2inc$(CMD) | | 17 | - $(CP) dcl2inc$(CMD) $(bindir)/dcl2inc$(CMD) |
18 | - $(CHMOD) 755 $(bindir)/dcl2inc$(CMD) | | 18 | - $(CHMOD) 755 $(bindir)/dcl2inc$(CMD) |
19 | - -$(RM) $(bindir)/fcl2vcg | | 19 | - -$(RM) $(bindir)/fcl2vcg |
20 | + $(BSD_INSTALL_PROGRAM) ftnchek$(EXE) $(bindir) | | 20 | + $(BSD_INSTALL_PROGRAM) ftnchek$(EXE) $(DESTDIR)$(bindir) |
21 | + $(BSD_INSTALL_DATA_DIR) $(libdir) | | 21 | + $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(libdir) |
22 | + $(BSD_INSTALL_DATA) dcl2inc.awk $(libdir) | | 22 | + $(BSD_INSTALL_DATA) dcl2inc.awk $(DESTDIR)$(libdir) |
23 | + $(BSD_INSTALL_SCRIPT) dcl2inc$(CMD) $(bindir) | | 23 | + $(BSD_INSTALL_SCRIPT) dcl2inc$(CMD) $(DESTDIR)$(bindir) |
24 | | | 24 | |
25 | # Install man pages, taking care to remove old formatted ones, because | | 25 | # Install man pages, taking care to remove old formatted ones, because |
26 | # many man implentations fail to compare time stamps of raw and | | 26 | # many man implentations fail to compare time stamps of raw and |
27 | # formatted files, and will show out-of-date formatted files. | | 27 | # formatted files, and will show out-of-date formatted files. |
28 | install-man: ftnchek$(manext) | | 28 | install-man: ftnchek$(manext) |
29 | - -$(MKDIR) -p $(mandir)/man1 | | 29 | - -$(MKDIR) -p $(mandir)/man1 |
30 | - $(CP) dcl2inc.man $(mandir)/man1/dcl2inc$(manext) | | 30 | - $(CP) dcl2inc.man $(mandir)/man1/dcl2inc$(manext) |
31 | - -$(RM) $(mandir)/cat1/dcl2inc$(manext) | | 31 | - -$(RM) $(mandir)/cat1/dcl2inc$(manext) |
32 | - $(CHMOD) 644 $(mandir)/man1/dcl2inc$(manext) | | 32 | - $(CHMOD) 644 $(mandir)/man1/dcl2inc$(manext) |
33 | - $(CP) ftnchek$(manext) $(mandir)/man1/ftnchek$(manext) | | 33 | - $(CP) ftnchek$(manext) $(mandir)/man1/ftnchek$(manext) |
34 | - -$(RM) $(mandir)/cat1/ftnchek$(manext) | | 34 | - -$(RM) $(mandir)/cat1/ftnchek$(manext) |
35 | - $(CHMOD) 644 $(mandir)/man1/ftnchek$(manext) | | 35 | - $(CHMOD) 644 $(mandir)/man1/ftnchek$(manext) |
36 | - -$(RM) $(mandir)/man1/fcl2vcg$(manext) | | 36 | - -$(RM) $(mandir)/man1/fcl2vcg$(manext) |
37 | - -$(RM) $(mandir)/cat1/fcl2vcg$(manext) | | 37 | - -$(RM) $(mandir)/cat1/fcl2vcg$(manext) |
38 | + $(BSD_INSTALL_MAN) dcl2inc.man $(mandir)/man1/dcl2inc$(manext) | | 38 | + $(BSD_INSTALL_MAN) dcl2inc.man $(DESTDIR)$(mandir)/man1/dcl2inc$(manext) |
39 | + $(BSD_INSTALL_MAN) ftnchek$(manext) $(mandir)/man1/ftnchek$(manext) | | 39 | + $(BSD_INSTALL_MAN) ftnchek$(manext) $(DESTDIR)$(mandir)/man1/ftnchek$(manext) |
40 | | | 40 | |
41 | # IRIX uses pre-formatted, packed man pages and nroff is not bundled with it. | | 41 | # IRIX uses pre-formatted, packed man pages and nroff is not bundled with it. |
42 | install-man-sgi: catman | | 42 | install-man-sgi: catman |
43 | @@ -528,23 +514,8 @@ | | 43 | if $(PACK) dcl2inc.cat ; \ |
| | | 44 | then \ |
| | | 45 | - $(MV) dcl2inc.cat.z $(mandir)$(sgimansubdir)/dcl2inc.z ; \ |
| | | 46 | - $(CHMOD) 644 $(mandir)$(sgimansubdir)/dcl2inc.z ; \ |
| | | 47 | + $(MV) dcl2inc.cat.z $(DESTDIR)$(mandir)$(sgimansubdir)/dcl2inc.z ; \ |
| | | 48 | + $(CHMOD) 644 $(DESTDIR)$(mandir)$(sgimansubdir)/dcl2inc.z ; \ |
| | | 49 | fi |
| | | 50 | if $(PACK) ftnchek.cat ; \ |
| | | 51 | then \ |
| | | 52 | - $(MV) ftnchek.cat.z $(mandir)$(sgimansubdir)/ftnchek.z ; \ |
| | | 53 | - $(CHMOD) 644 $(mandir)$(sgimansubdir)/ftnchek.z ; \ |
| | | 54 | + $(MV) ftnchek.cat.z $(DESTDIR)$(mandir)$(sgimansubdir)/ftnchek.z ; \ |
| | | 55 | + $(CHMOD) 644 $(DESTDIR)$(mandir)$(sgimansubdir)/ftnchek.z ; \ |
| | | 56 | fi |
| | | 57 | - -$(RM) $(mandir)/fcl2vcg.z |
| | | 58 | + -$(RM) $(DESTDIR)$(mandir)/fcl2vcg.z |
| | | 59 | |
| | | 60 | # The catman target makes formatted ("cat") versions of the manpages |
| | | 61 | # for use in install-man-sgi. These files are not in the standard |
| | | 62 | @@ -528,23 +514,8 @@ catman: dcl2inc.cat ftnchek.cat |
44 | # The emacs lisp file will be installed only if lispdir exists. It will | | 63 | # The emacs lisp file will be installed only if lispdir exists. It will |
45 | # be byte-compiled if emacs is present. | | 64 | # be byte-compiled if emacs is present. |
46 | install-lisp: | | 65 | install-lisp: |
47 | - @if test -d "$(lispdir)" ; \ | | 66 | - @if test -d "$(lispdir)" ; \ |
48 | - then \ | | 67 | - then \ |
49 | - echo $(CP) ftnchek.el $(lispdir)/ftnchek.el ; \ | | 68 | - echo $(CP) ftnchek.el $(lispdir)/ftnchek.el ; \ |
50 | - if $(CP) ftnchek.el $(lispdir)/ftnchek.el ; \ | | 69 | - if $(CP) ftnchek.el $(lispdir)/ftnchek.el ; \ |
51 | - then \ | | 70 | - then \ |
52 | - if test -x "$(EMACS)" ; \ | | 71 | - if test -x "$(EMACS)" ; \ |
53 | - then \ | | 72 | - then \ |
54 | - $(EMACS) -batch -f batch-byte-compile $(lispdir)/ftnchek.el ; \ | | 73 | - $(EMACS) -batch -f batch-byte-compile $(lispdir)/ftnchek.el ; \ |
55 | - else \ | | 74 | - else \ |
56 | - echo "If desired, use emacs to byte-compile $(lispdir)/ftnchek.el"; \ | | 75 | - echo "If desired, use emacs to byte-compile $(lispdir)/ftnchek.el"; \ |
57 | - fi \ | | 76 | - fi \ |
58 | - fi \ | | 77 | - fi \ |
59 | - else \ | | 78 | - else \ |
60 | - echo "$(lispdir) does not exist -- ftnchek.el not installed." ; \ | | 79 | - echo "$(lispdir) does not exist -- ftnchek.el not installed." ; \ |
61 | - echo "If you want to install ftnchek.el, create $(lispdir)" ; \ | | 80 | - echo "If you want to install ftnchek.el, create $(lispdir)" ; \ |
62 | - echo "or re-run make install with 'lispdir=path-to-site-lisp'" ; \ | | 81 | - echo "or re-run make install with 'lispdir=path-to-site-lisp'" ; \ |
63 | - fi | | 82 | - fi |
64 | + $(BSD_INSTALL_DATA_DIR) $(lispdir) | | 83 | + $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(lispdir) |
65 | + $(BSD_INSTALL_DATA) ftnchek.el $(lispdir) | | 84 | + $(BSD_INSTALL_DATA) ftnchek.el $(DESTDIR)$(lispdir) |
66 | | | 85 | |
67 | # Remove everything that the install target installed. | | 86 | # Remove everything that the install target installed. |
68 | uninstall: | | 87 | uninstall: |