summaryrefslogtreecommitdiff
path: root/graphics/urt/files/patch-man__makefile.src
blob: 9ecc903da8683b22d0ed966f6bf4bb6692b65007 (plain) (blame)
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
--- man/makefile.src.orig	Fri Feb 28 06:26:52 1992
+++ man/makefile.src	Sat Dec 28 00:43:57 2002
@@ -211,39 +211,35 @@
 
 # Put the manual pages into a global location
 install: install-1 install-3 install-5
-	touch install
 
 install-1: $(PAGES1)
 	@-sh -c "if test '$(DEST)X' != X ; then \
 		for i in $? ; do \
 			dpgm=\`basename \$$i .1\`.$(SUFF1) ; \
-			echo cp \$$i $(DEST1)/\$$dpgm ; \
-			cp \$$i $(DEST1)/\$$dpgm ; \
+			echo install \$$i $(DEST1)/\$$dpgm ; \
+			${BSD_INSTALL_MAN} \$$i $(DEST1)/\$$dpgm ; \
 		done ; \
 	else \
 		true ; \
 	fi"
-	touch install-1
 
 install-3: $(PAGES3)
 	@-sh -c "if test '$(DEST)X' != X ; then \
 		for i in $? ; do \
 			dpgm=${PAGE3_INSTALL_NAME} ; \
-			echo cp \$$i $(DEST3)/\$$dpgm ; \
-			cp \$$i $(DEST3)/\$$dpgm ; \
+			echo install \$$i $(DEST3)/\$$dpgm ; \
+			${BSD_INSTALL_MAN} \$$i $(DEST3)/\$$dpgm ; \
 		done ; \
 	else \
 		true ; \
 	fi"
-	touch install-3
 
 install-5: man5/*.5
 	@-sh -c "if test $(DEST)X != X; then \
-		echo cp $? $(DEST5); \
-		cp $? $(DEST5); \
+		echo install $? $(DEST5); \
+		${BSD_INSTALL_MAN} $? $(DEST5); \
 	else true; \
 	fi"
-	touch install-5
 
 # Clean up installed man pages
 pristine: