summaryrefslogtreecommitdiff
path: root/devel/ftnchek/patches/patch-ab
blob: 4ead5a8cb46afafd80d46f6ce547fcbb99b80c3e (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
$NetBSD: patch-ab,v 1.3 2002/05/20 17:41:05 cjep Exp $
--- Makefile.in.orig	Sat Nov  3 00:49:25 2001
+++ Makefile.in	Mon Apr 29 11:14:13 2002
@@ -436,30 +436,19 @@
 install:	install-exe @INSTALL_MAN@ install-lisp
 
 install-exe:	ftnchek$(EXE) dcl2inc$(CMD)
-	-$(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_DIR) $(bindir)
+	$(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)
-	$(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_DIR) $(mandir)
+	$(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
@@ -502,18 +491,8 @@
 #  The emacs lisp file will be installed only if lispdir exists, since
 #  if it doesn't exist, this machine probably doesn't have emacs.
 install-lisp:
-	@if test -d "$(lispdir)" ; \
-	then \
-	  echo $(CP) ftnchek.el $(lispdir)/ftnchek.el ; \
-	  if $(CP) ftnchek.el $(lispdir)/ftnchek.el ; \
-	  then \
-	     echo "If desired, use emacs to byte-compile $(lispdir)/ftnchek.el"; \
-	  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: