summaryrefslogtreecommitdiff
path: root/net/freenet6/files/patch-Makefiles-etcdir.patch
blob: c74ac5bd0dba7512517bf9714d129d7e5ee72081 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
--- template/Makefile.orig	2009-11-15 19:42:51.000000000 +0100
+++ template/Makefile	2009-11-15 19:43:01.000000000 +0100
@@ -17,8 +17,10 @@
 
 install:
 	@echo "Installing templates ..."
-	@for template_var in README $(PLATFORM).sh; do \
-            cp $${template_var} $(INSTALL_TEMPL)/$${template_var}; \
+	@for template_var in $(PLATFORM).sh; do \
+            cp $${template_var} $(INSTALL_BIN)/gw6c-$${template_var}; \
         done
+	@mkdir -p $(ETCDIR)
+	@cp README $(ETCDIR)
 
 clean: 
--- Makefile.orig	2009-11-15 19:50:40.000000000 +0100
+++ Makefile	2009-11-15 19:50:57.000000000 +0100
@@ -74,7 +74,7 @@
 #
 .PHONY: all platform-check check-gw6c-pal check-gw6c-config check-gw6c-messaging build-gw6c check-gw6c-install install clean cleanall
 
-all: platform-check check-gw6c-pal check-gw6c-config check-gw6c-messaging build-gw6c
+all: platform-check check-gw6c-config check-gw6c-messaging build-gw6c
 
 
 # This makefile target will check the platform.
@@ -117,7 +117,7 @@
 # This makefile target will check and build the Gateway6 Client Configuration
 # Subsystem if it is not built.
 #
-check-gw6c-config:
+check-gw6c-config:	check-gw6c-pal
 	@[ -d ${GW6CCFG_DIR} ] || { \
 	    echo "Gateway6 Client Configuration Subsystem module is not found. (${GW6CCFG_DIR})"; \
 	    exit 1 ; \
@@ -131,7 +131,7 @@
 # This makefile target will check and build the Gateway6 Client Messaging
 # Subsystem if it is not built.
 #
-check-gw6c-messaging:
+check-gw6c-messaging:	check-gw6c-pal
 	@[ -d ${GW6CMSG_DIR} ] || { \
 	    echo "Gateway6 Client Messaging Subsystem module is not found. (${GW6CMSG_DIR})"; \
 	    exit 1 ; \
@@ -144,7 +144,7 @@
 
 # This makefile target will build the Gateway6 Client.
 #
-build-gw6c:
+build-gw6c:	check-gw6c-pal
 	mkdir -p $(OBJS_DIR)
 	mkdir -p $(BIN_DIR)
 	@for dir in ${SUBDIRS}; do \
@@ -167,17 +167,14 @@
 	@mkdir -p $(INSTALL_DIR)
 	@mkdir -p $(INSTALL_BIN)
 	@mkdir -p $(INSTALL_MAN)
-	@mkdir -p $(INSTALL_TEMPL)
 
 	@for dir in ${SUBDIRS}; do \
 	    $(MAKE) -C $$dir install || exit 1; \
 	done
 
 	@cp $(TARGET) $(INSTALL_BIN)
-	@cp $(BIN_DIR)/gw6c.conf.sample $(INSTALL_BIN)
-	@[ -f $(INSTALL_BIN)/gw6c.conf ] || { \
-	    cp $(INSTALL_BIN)/gw6c.conf.sample $(INSTALL_BIN)/gw6c.conf; \
-	}
+	@mkdir -p $(ETCDIR)
+	@cp $(BIN_DIR)/gw6c.conf.sample $(ETCDIR)
 
 
 # This makefile target will clean the build tree of the Gateway6 Client.