blob: 1845d1217ebffcd791ee1880fed685a2ec8c7715 (
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
|
--- Makefile.orig 2008-03-16 14:23:22.000000000 +0000
+++ Makefile 2009-01-02 23:45:48.380520000 +0000
@@ -1,6 +1,6 @@
-DESTDIR=/usr/local
-PREFIX=xyssl_
+PREFIX?=/usr/local
+DESTDIR=${PREFIX}
.SILENT:
@@ -10,17 +10,17 @@
install:
mkdir -p $(DESTDIR)/include/xyssl
- cp -r include/xyssl $(DESTDIR)/include
-
+ ${BSD_INSTALL_DATA} include/xyssl/*.h $(DESTDIR)/include/xyssl
+
mkdir -p $(DESTDIR)/lib
- cp library/libxyssl.* $(DESTDIR)/lib
-
+ ${BSD_INSTALL_DATA} library/libxyssl.* $(DESTDIR)/lib
+
mkdir -p $(DESTDIR)/bin
for p in programs/*/* ; do \
if [ -x $$p ] && [ ! -d $$p ] ; \
then \
- f=$(PREFIX)`basename $$p` ; \
- cp $$p $(DESTDIR)/bin/$$f ; \
+ f=xyssl_`basename $$p` ; \
+ ${BSD_INSTALL_PROGRAM} $$p $(DESTDIR)/bin/$$f ; \
fi \
done
|