OSDN Git Service

Bug fixed:
[eos/hostdependX86LINUX64.git] / Makefile
1 EOS_GIT_BACKUPSITE=/net/fs08/fs08/DataBase/EosBackup.git
2 EOS_GIT_REPOSITRY= git.sourceforge.jp:/gitroot/eos/base.git 
3 EOS_GIT_REPOSITRY_OPTIONAL= git.sourceforge.jp:/gitroot/eos/optional.git 
4 EOS_GIT_REPOSITRY_TUTORIAL= git.sourceforge.jp:/gitroot/eos/tutorial.git 
5 EOS_GIT_REPOSITRY_DATA= git.sourceforge.jp:/gitroot/eos/data.git 
6 EOS_GIT_REPOSITRY_OTHERS= git.sourceforge.jp:/gitroot/eos/others.git 
7
8
9 help::
10         @echo ">> Help"
11         @echo ">>>> Download"
12         @echo "---- To register new/Modified source codes. ----"
13         @echo " $$ make git-add         or git-add[-all|-data|-tutorial|-optional|-others|-others2]" 
14         @echo " $$ make git-commit      or git-commit[-all|-data|-tutorial|-optional|-others|-others2]" 
15         @echo " $$ git tag " 
16         @echo " $$ git tag newtag "
17         @echo " $$ make git-push        or git-push[-all|-data|-tutorial|-optional|-others]" 
18         @echo ""
19         @echo "---- To fetch and merge new/modified source codes. ----" 
20         @echo " $$ make git-fetch       or git-fetch[-all|-data|-tutorial|-optional|-others]" 
21         @echo " $$ make git-merge       or git-merge[-all|-data|-tutorial|-optional|-others]" 
22         @echo " $$ make setting"
23         @echo "---- To init git repository ----"
24         @echo " $$ make git-init        or git-init[-all|-data|-tutorial|-optional|-others]" 
25         @echo "---- To clonse git repository ----"
26         @echo " $$ make git-clone or git-clone[-all|-data|-tutorial|-optional|-others]" 
27         @echo "---- option ----"
28         @echo "     [] : base only"
29         @echo "     [-data]     : data (for test)"
30         @echo "     [-tutorial] : tutorial"
31         @echo "     [-optional] : optional(for documents)"
32         @echo "     [-others] : other source codes for utils"
33         @echo "     [-others2] : other source codes for utils"
34         @echo "     [-all] : all"
35         @echo ""
36         @echo ">>>> Setting"
37         @echo "---- To set Eos ----"
38         @echo " $$ make setting"
39         @echo " $$ make rebuild"
40         @echo ""
41         @echo ">>>> Rebuild"
42         @echo "---- To rebuild source codes of Eos ----"
43         @echo " $$ make rebuild"
44         @echo "---- To set Eos ----"
45         @echo " $$ make setting"
46         @echo ""
47         @echo ">>>> Setting for Eos utils using other softwares "
48         @echo "---- To set Eos ----"
49         @echo " $$ cd util; make setting"
50         @echo " $$ cd util; make rebuild"
51
52
53
54 rebuild: rebuild-src rebuild-Objects rebuild-Tools
55
56 rebuild-src:
57         echo "rebuild-src"
58         cd src; rm -f Objects/Makefile; cp -f Config/Template/ObjectsHomeTemplate.Dir/Makefile Objects/Makefile
59         cd src; rm -f Tools/Makefile; cp -f Config/Template/ToolsHomeTemplate.Dir/Makefile Tools/Makefile
60
61 rebuild-Objects:
62         cd src/Objects;  make clean; make check; make depend; make ; make install
63
64 rebuild-Tools:
65         cd src/Tools;    make clean; make check; make depend; make clean; make ; make install
66
67 setting:relink
68
69 relink:
70         ln -sf optional/doc .
71         ln -sf optional/objects .
72         ln -sf data/example .
73
74 git-add-all:: git-add git-add-data git-add-optional git-add-tutorial git-add-others
75
76 git-add::
77         git add -v .
78
79 git-add-optional::
80         cd optional; git add . 
81
82 git-add-data::
83         cd data; git add . 
84
85 git-add-tutorial::
86         cd tutorial; git add . 
87
88 git-add-others::
89         cd others; git add . 
90
91 git-add-others2::
92         cd others2; git add . 
93
94 git-commit-all:: git-commit git-commit-data git-commit-optional git-commit-tutorial git-commit-others
95
96 git-commit::
97         git commit 
98
99 git-commit-optional::
100         cd optional; git commit  
101
102 git-commit-data::
103         cd data; git commit 
104
105 git-commit-tutorial::
106         cd tutorial; git commit 
107
108 git-commit-others::
109         cd others; git commit 
110
111 git-commit-others2::
112         cd others2; git commit 
113
114 git-backup::
115         git push $(EOS_GIT_BACKUPSITE) master  --tags
116
117 git-push-all:: git-push git-push-data git-push-optional git-push-tutorial git-push-others
118
119 git-push::
120         git push origin master  --tags
121
122 git-push-optional::
123         cd optional; git push optional master --tags
124
125 git-push-data::
126         cd data; git push data master --tags
127
128 git-push-tutorial::
129         cd tutorial; git push tutorial master --tags 
130
131 git-push-others::
132         cd others; git push others master --tags
133
134 git-fetch-all:: git-fetch git-fetch-data git-fetch-optional git-fetch-tutorial git-fetch-others
135
136 git-fetch::
137         cd .       ; git fetch origin master  ; git log -1
138
139 git-fetch-data::
140         cd data    ; git fetch data master    ; git log -1
141
142 git-fetch-optional::
143         cd optional; git fetch optional master; git log -1
144
145 git-fetch-tutorial::
146         cd tutorial; git fetch tutorial master; git log -1
147
148 git-fetch-others::
149         cd others  ; git fetch others master  ; git log -1
150
151 git-merge-all:: git-merge git-merge-data git-merge-optional git-merge-tutorial git-merge-others
152
153 git-merge::
154         cd .       ; git log -1; git merge FETCH_HEAD 
155
156 git-merge-data::
157         cd data    ; git log -1; git merge FETCH_HEAD 
158
159 git-merge-optional::
160         cd optional; git log -1; git merge FETCH_HEAD
161
162 git-merge-tutorial::
163         cd tutorial; git log -1; git merge FETCH_HEAD 
164
165 git-merge-others::
166         cd others  ; git log -1; git merge FETCH_HEAD 
167
168 #
169 # Nickname 
170 #
171
172 git-init-all:: git-init git-init-data git-init-optional git-init-tutorial
173
174 git-init::
175         if [ ! -d .git ] ; then git init        ; fi
176         git remote rm origin; git remote add origin    $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY)
177
178 git-init-data::
179         if [ ! -d data ] ; then mkdir data; fi
180         cd data; git remote rm data; git remote add data      $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_DATA)
181
182 git-init-optional::
183         if [ ! -d optional ] ; then mkdir optional; fi
184         if [ ! -L doc      ] ; then ln -sf optional/doc . ; fi
185         if [ ! -L objects  ] ; then ln -sf optional/objects . ; fi
186         cd optional; git remote rm optional ; git remote add optional  $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OPTIONAL)
187
188 git-init-tutorial::
189         if [ ! -d tutorial ] ; then mkdir tutorial ; fi
190         cd tutorial; git remote rm tutorial ; git remote add tutorial  $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_TUTORIAL)
191
192 git-init-others::
193         if [ ! -d others ] ; then mkdir others; fi
194         cd others ; git remote rm others; git remote add others $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS)
195
196
197 git-clone-all:: git-init git-init-data git-init-optional git-init-tutorial
198
199 git-clone:git-init
200         if [ ! -d  .git ] ; \
201         then \
202                 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY) ./ ; \
203         fi
204
205 git-clone-data: git-init-data
206         cd data;  if [ ! -d .git ] ; \
207         then \
208                 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_DATA) ./; \
209         fi
210
211 git-clone-optional: git-init-optional 
212         cd optional; if [ ! -d .git ] ; \
213         then \
214                 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OPTIONAL) ./ ; \
215         fi
216
217 git-clone-tutorial: git-init-tutorial
218         cd tutorial; if [ ! -d .git ] ; \
219         then \
220                 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_TUTORIAL) ./ ; \
221         fi
222
223 git-clone-others: git-init-others
224         cd others ; if [ ! -d .git ] ; \
225         then \
226                 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS) ./ ; \
227         fi
228         cd others ; git remote add others $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY_OTHERS)
229
230 git-init-others2::
231         if [ ! -d others2 ] ; then mkdir others2; fi
232         cd others2 ; git remote add others2 $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY_OTHERS)
233