Inserting VZGOT development tree within GIT
[safe/jmp/vzgot] / RCS / Makefile.inc,v
1 head    0.84;
2 access;
3 symbols;
4 locks
5         jmp:0.84.0.0; strict;
6 comment @# @;
7
8
9 0.84
10 date    2010.03.06.16.39.08;    author jmp;     state Exp;
11 branches
12         0.84.0.0;
13 next    0.83;
14
15 0.83
16 date    2010.03.06.16.39.08;    author jmp;     state Exp;
17 branches
18         0.83.0.0;
19 next    ;
20
21 0.83.0.0
22 date    2010.03.06.16.39.08;    author jmp;     state Exp;
23 branches;
24 next    0.83.0.1;
25
26 0.83.0.1
27 date    2010.03.06.16.39.08;    author jmp;     state Exp;
28 branches;
29 next    ;
30
31 0.84.0.0
32 date    2010.03.06.16.39.08;    author jmp;     state Exp;
33 branches;
34 next    ;
35
36
37 desc
38 @#--------------------------------------------------------------------
39 #To make a debugging executable
40 prod                                                            \
41 debug   :
42            @@ for i in $(SUBDIRS) ;                             \
43              do                                                 \
44              echo "Doing: $$i $@@";                             \
45              $(MAKE) -C $$i $@@ ;                               \
46              RETVAL=$$? ;                                       \
47              if [ $$RETVAL != 0 ] ; then                        \
48                 exit $$RETVAL ;                                 \
49                 fi ;                                            \
50              done
51
52 #To clean distribution
53 clean   :
54            @@ for i in $(SUBDIRS) ;                             \
55              do                                                 \
56              echo "Doing now \"$$i $@@\"" ;                     \
57              $(MAKE) -s  -C $$i $@@ ;                           \
58              done
59            @@ - rm -fr bin
60
61 #--------------------------------------------------------------------
62 #installing application
63 install :
64            @@ install -d $(DESTDIR)/usr/sbin/
65            @@ install -d $(DESTDIR)/var/lock/$(APPNAME)
66            @@ #adding executable
67            @@ install app/vzgot $(DESTDIR)/usr/sbin
68            @@ mv shell/vzgot.mksrvz $(DESTDIR)/usr/sbin/
69            @@ mv shell/vzgot.redoall $(DESTDIR)/usr/sbin/
70            @@ #adding init file
71            @@ install -d $(DESTDIR)/etc/rc.d/init.d
72            @@ cp -ap conf/redhat_init.sh $(DESTDIR)/etc/rc.d/init.d/vzgot
73            @@ #adding configuration file
74            @@ install -d $(DESTDIR)/etc/$(APPNAME)
75            @@ install -m 0644 conf/vzgot_config $(DESTDIR)/etc/$(APPNAME)
76            @@ install -m 0644 conf/vzgot_list $(DESTDIR)/etc/$(APPNAME)
77            @@ install -d $(DESTDIR)/var/lib/$(APPNAME)
78            @@ cp -ap etc $(DESTDIR)/var/lib/$(APPNAME)
79            @@ install -d $(DESTDIR)/var/lib/$(APPNAME)/etc/ssh
80            @@ install -d $(DESTDIR)/var/lib/$(APPNAME)/etc/sysconfig
81            @@ install -d $(DESTDIR)/var/lib/$(APPNAME)/home
82            @@ cp -ap cgroup.d $(DESTDIR)/var/lib/$(APPNAME)
83            @@ #adding template directory
84            @@ install -d $(DESTDIR)/var/lib/$(APPNAME)/vztemplate
85            @@ #adding special distribution RPM
86            @@ cp -ap RPM $(DESTDIR)/var/lib/$(APPNAME)
87            @@ install -d $(DESTDIR)/var/lib/$(APPNAME)/vzdir
88            @@ #adding application shell script
89            @@ install -d $(DESTDIR)/var/lib/$(APPNAME)/shell
90            @@ install shell/vzgot.* $(DESTDIR)/var/lib/$(APPNAME)/shell
91
92 #--------------------------------------------------------------------
93 SUBDIRS=                                                        \
94            lib app
95
96 #===================================================================
97 #all support information
98 .PHONY: clean
99 #--------------------------------------------------------------------
100 #version management
101 APPNAME=vzgot
102 REVISION="$Revision: 0.84.0.0 $ "
103 DATE="$Date: 2010/03/06 16:38:31 $"
104 VERS=`echo $(REVISION) | cut -d' ' -f 2 | cut -d'.' -f1,2`
105 REL=`echo $(REVISION) | cut -d' ' -f 2 | cut -d'.' -f4`
106 SUBVERS=`echo $(DATE) | cut -d' ' -f2 | tr -d '/'`
107 APLR=$(APPNAME)-$(VERS).$(REL)
108 #--------------------------------------------------------------------
109 @
110
111
112 0.84
113 log
114 @upgrade version
115 @
116 text
117 @#--------------------------------------------------------------------
118 #To make a debugging executable
119 prod                                                            \
120 debug   :  
121            @@ for i in $(SUBDIRS) ;                             \
122              do                                                 \
123              echo "Doing: $$i $@@";                             \
124              $(MAKE) -C $$i $@@ ;                               \
125              RETVAL=$$? ;                                       \
126              if [ $$RETVAL != 0 ] ; then                        \
127                 exit $$RETVAL ;                                 \
128                 fi ;                                            \
129              done
130
131 #To clean distribution
132 clean   :
133            @@ for i in $(SUBDIRS) ;                             \
134              do                                                 \
135              echo "Doing now \"$$i $@@\"" ;                     \
136              $(MAKE) -s  -C $$i $@@ ;                           \
137              done                       
138            @@ - rm -fr bin
139
140 #--------------------------------------------------------------------
141 #installing application
142 install :
143            @@ install -d $(DESTDIR)/usr/sbin/
144            @@ install -d $(DESTDIR)/var/lock/$(APPNAME)
145            @@ #adding executable
146            @@ install app/vzgot $(DESTDIR)/usr/sbin
147            @@ mv shell/vzgot.mksrvz $(DESTDIR)/usr/sbin/
148            @@ mv shell/vzgot.redoall $(DESTDIR)/usr/sbin/
149            @@ #adding init file
150            @@ install -d $(DESTDIR)/etc/rc.d/init.d
151            @@ cp -ap conf/redhat_init.sh $(DESTDIR)/etc/rc.d/init.d/vzgot
152            @@ #adding configuration file
153            @@ install -d $(DESTDIR)/etc/$(APPNAME)
154            @@ install -m 0644 conf/vzgot_config $(DESTDIR)/etc/$(APPNAME)
155            @@ install -m 0644 conf/vzgot_list $(DESTDIR)/etc/$(APPNAME)
156            @@ install -d $(DESTDIR)/var/lib/$(APPNAME)
157            @@ cp -ap etc $(DESTDIR)/var/lib/$(APPNAME)
158            @@ install -d $(DESTDIR)/var/lib/$(APPNAME)/etc/ssh
159            @@ install -d $(DESTDIR)/var/lib/$(APPNAME)/etc/sysconfig
160            @@ install -d $(DESTDIR)/var/lib/$(APPNAME)/home
161            @@ cp -ap cgroup.d $(DESTDIR)/var/lib/$(APPNAME)
162            @@ #adding template directory
163            @@ install -d $(DESTDIR)/var/lib/$(APPNAME)/vztemplate
164            @@ #adding special distribution RPM
165            @@ cp -ap RPM $(DESTDIR)/var/lib/$(APPNAME)
166            @@ install -d $(DESTDIR)/var/lib/$(APPNAME)/vzdir
167            @@ #adding application shell script
168            @@ install -d $(DESTDIR)/var/lib/$(APPNAME)/shell
169            @@ install shell/vzgot.* $(DESTDIR)/var/lib/$(APPNAME)/shell
170
171 #--------------------------------------------------------------------
172 SUBDIRS=                                                        \
173            lib app
174
175 #===================================================================
176 #all support information
177 .PHONY: clean
178 #--------------------------------------------------------------------
179 #version management
180 APPNAME=vzgot
181 REVISION="$Revision: 0.83.0.1 $ "
182 DATE="$Date: 2010/03/06 16:39:08 $"
183 VERS=`echo $(REVISION) | cut -d' ' -f 2 | cut -d'.' -f1,2`
184 REL=`echo $(REVISION) | cut -d' ' -f 2 | cut -d'.' -f4`
185 SUBVERS=`echo $(DATE) | cut -d' ' -f2 | tr -d '/'`
186 APLR=$(APPNAME)-$(VERS).$(REL)
187 #--------------------------------------------------------------------
188 @
189
190
191 0.84.0.0
192 log
193 @Ratrapage numero de Version
194 @
195 text
196 @d65 1
197 a65 1
198 REVISION="$Revision: 0.84 $ "
199 @
200
201
202 0.83
203 log
204 @Creation
205 #=================================================================================
206 @
207 text
208 @d65 2
209 a66 2
210 REVISION="$Revision: 0.84.0.0 $ "
211 DATE="$Date: 2010/03/06 16:38:31 $"
212 @
213
214
215 0.83.0.0
216 log
217 @Ratrapage numero de Version
218 @
219 text
220 @d65 2
221 a66 2
222 REVISION="$Revision: 0.83 $ "
223 DATE="$Date: 2010/03/06 16:39:08 $"
224 @
225
226
227 0.83.0.1
228 log
229 @Mise en place su GIT
230 @
231 text
232 @d65 1
233 a65 1
234 REVISION="$Revision: 0.83.0.0 $ "
235 @