aboutsummaryrefslogtreecommitdiff
path: root/devel/libcoro/files/patch-ab
blob: bb40847991188d1ebc0f0149db7797cb451fde08 (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
--- arch/x86-freebsd/Makefile.in.orig	Tue Jul  4 13:19:55 2000
+++ arch/x86-freebsd/Makefile.in	Tue Jul  4 13:21:33 2000
@@ -1,10 +1,13 @@
-CFLAGS=-O2 -Wall
+CFLAGS?=-O2 -Wall
 
 MAN=@MANSRC@
 LINST=@LINST@
 HINST=@HINST@
 MINST=@MINST@
 
+BSD_INSTALL_DATA?=install -C -m 644
+BSD_INSTALL_MAN?=install -C -m 644
+
 all: libcoro.a
 
 libcoro.a: coro.o
@@ -14,9 +17,9 @@
 coro.o: coro.h
 
 install: libcoro.a coro.h $(MAN)
-	install -m 644 libcoro.a $(LINST)/libcoro.a
-	install -m 644 coro.h $(HINST)/coro.h
-	install -m 644 $(MAN) $(MINST)/man2/coro.2
+	$(BSD_INSTALL_DATA) libcoro.a $(LINST)/libcoro.a
+	$(BSD_INSTALL_DATA) coro.h $(HINST)/coro.h
+	$(BSD_INSTALL_MAN) $(MAN) $(MINST)/man2/coro.2
 
 clean:
 	rm -f libcoro.a coro.o