summaryrefslogtreecommitdiff
path: root/devel/ftnchek/patches/patch-ab
blob: 911d2202617a46eafc404e1585fdf4addfd4f91b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
$NetBSD: patch-ab,v 1.5 2009/12/17 21:27:32 abs Exp $

--- Makefile.in.orig	2003-03-20 22:07:55.000000000 +0000
+++ Makefile.in
@@ -461,45 +461,31 @@ average.out: ftnchek.h
 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) $(DESTDIR)$(bindir)
+	$(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(libdir)
+	$(BSD_INSTALL_DATA) dcl2inc.awk $(DESTDIR)$(libdir)
+	$(BSD_INSTALL_SCRIPT) dcl2inc$(CMD) $(DESTDIR)$(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 $(DESTDIR)$(mandir)/man1/dcl2inc$(manext)
+	$(BSD_INSTALL_MAN) ftnchek$(manext) $(DESTDIR)$(mandir)/man1/ftnchek$(manext)
 
 # IRIX uses pre-formatted, packed man pages and nroff is not bundled with it.
 install-man-sgi: catman
 	if $(PACK) dcl2inc.cat ; \
 	then \
-		$(MV) dcl2inc.cat.z $(mandir)$(sgimansubdir)/dcl2inc.z ; \
-		$(CHMOD) 644 $(mandir)$(sgimansubdir)/dcl2inc.z ; \
+		$(MV) dcl2inc.cat.z $(DESTDIR)$(mandir)$(sgimansubdir)/dcl2inc.z ; \
+		$(CHMOD) 644 $(DESTDIR)$(mandir)$(sgimansubdir)/dcl2inc.z ; \
 	fi
 	if $(PACK) ftnchek.cat ; \
 	then \
-		$(MV) ftnchek.cat.z $(mandir)$(sgimansubdir)/ftnchek.z ; \
-		$(CHMOD) 644 $(mandir)$(sgimansubdir)/ftnchek.z ; \
+		$(MV) ftnchek.cat.z $(DESTDIR)$(mandir)$(sgimansubdir)/ftnchek.z ; \
+		$(CHMOD) 644 $(DESTDIR)$(mandir)$(sgimansubdir)/ftnchek.z ; \
 	fi
-	-$(RM) $(mandir)/fcl2vcg.z
+	-$(RM) $(DESTDIR)$(mandir)/fcl2vcg.z
 
 # The catman target makes formatted ("cat") versions of the manpages
 # for use in install-man-sgi.  These files are not in the standard
@@ -528,23 +514,8 @@ catman: dcl2inc.cat ftnchek.cat
 #  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) $(DESTDIR)$(lispdir)
+	$(BSD_INSTALL_DATA) ftnchek.el $(DESTDIR)$(lispdir)
 
 # Remove everything that the install target installed.
 uninstall: