blob: 7a11a928eef889b78b6d6f2d4cf7627b2f8abd9e (
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
|
--- makefile.orig Fri Nov 4 14:23:52 2005
+++ makefile Mon Jan 1 13:16:52 2007
@@ -1,7 +1,7 @@
# $Id: patch-makefile,v 1.1 2007/01/01 18:25:35 jcooper Exp $
-INSTALL = /opt
+INSTALL = $(PREFIX)
# Install directories
@@ -40,12 +40,13 @@
$(MKDIR) $(I_PLG)
install: install_dirs
- $(CP) aunit/framework/*.ad* aunit/text_reporter/*.ad* $(I_INC)
- $(CP) aunit/lib/* $(I_LIB)
- $(CP) template/*.ad* template/*.gpr $(I_TPL)
- $(CP) docs/*.html docs/*.info docs/*.pdf docs/*.txt $(I_DOC)
- $(CP) support/aunit.gpr $(I_GPR)
- $(CP) support/aunit.xml $(I_PLG)
+ $(INSTALL_DATA) aunit/framework/*.ad* aunit/text_reporter/*.ad* \
+ $(I_INC)
+ $(INSTALL_DATA) aunit/lib/* $(I_LIB)
+ $(INSTALL_DATA) template/*.ad* template/*.gpr $(I_TPL)
+ $(INSTALL_DATA) docs/*.html docs/*.info docs/*.pdf docs/*.txt $(I_DOC)
+ $(INSTALL_DATA) support/aunit.gpr $(I_GPR)
+ $(INSTALL_DATA) support/aunit.xml $(I_PLG)
doc:
${MAKE} -C docs
@@ -56,7 +57,7 @@
gnatmake -Paunit_tests
./harness
-RMDIR = rmdir
-MKDIR = mkdir -p
-RM = rm
-CP = cp -p
+RMDIR = rmdir
+MKDIR = mkdir -p
+RM = rm
+INSTALL_DATA = install -o root -g wheel -m 444
|