OSDN Git Service

new file: Integration/Tomography/Makefile.recent
[eos/base.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]" 
14         @echo " $$ make git-commit      or git-commit[-all|-data|-tutorial|-optional|-others]" 
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 "     [-all] : all"
34         @echo ""
35         @echo ">>>> Setting"
36         @echo "---- To set Eos ----"
37         @echo " $$ make setting"
38         @echo " $$ make rebuild"
39         @echo ""
40         @echo ">>>> Rebuild"
41         @echo "---- To rebuild source codes of Eos ----"
42         @echo " $$ make rebuild"
43         @echo "---- To set Eos ----"
44         @echo " $$ make setting"
45         @echo ""
46         @echo ">>>> Setting for Eos utils using other softwares "
47         @echo "---- To set Eos ----"
48         @echo " $$ cd util; make setting"
49         @echo " $$ cd util; make rebuild"
50
51
52
53 rebuild: rebuild-Objects rebuild-Tools
54
55 rebuild-Objects:
56         cd src/Objects;  make clean; make check; make depend; make ; make install
57
58 rebuild-Tools:
59         cd src/Tools;    make clean; make check; make depend; make clean; make ; make install
60
61 setting:relink
62
63 relink:
64         ln -sf optional/doc .
65         ln -sf optional/objects .
66         ln -sf data/example .
67
68 git-add-all:: git-add git-add-data git-add-optional git-add-tutorial git-add-others
69
70 git-add::
71         git add -v .
72
73 git-add-optional::
74         cd optional; git add . 
75
76 git-add-data::
77         cd data; git add . 
78
79 git-add-tutorial::
80         cd tutorial; git add . 
81
82 git-add-others::
83         cd others; git add . 
84
85 git-commit-all:: git-commit git-commit-data git-commit-optional git-commit-tutorial git-commit-others
86
87 git-commit::
88         git commit 
89
90 git-commit-optional::
91         cd optional; git commit  
92
93 git-commit-data::
94         cd data; git commit 
95
96 git-commit-tutorial::
97         cd tutorial; git commit 
98
99 git-commit-others::
100         cd others; git commit 
101
102 git-backup::
103         git push $(EOS_GIT_BACKUPSITE) master  --tags
104
105 git-push-all:: git-push git-push-data git-push-optional git-push-tutorial git-push-others
106
107 git-push::
108         git push origin master  --tags
109
110 git-push-optional::
111         cd optional; git push optional master --tags
112
113 git-push-data::
114         cd data; git push data master --tags
115
116 git-push-tutorial::
117         cd tutorial; git push tutorial master --tags 
118
119 git-push-others::
120         cd others; git push others master --tags
121
122 git-fetch-all:: git-fetch git-fetch-data git-fetch-optional git-fetch-tutorial git-fetch-others
123
124 git-fetch::
125         cd .       ; git fetch origin master  ; git log -1
126
127 git-fetch-data::
128         cd data    ; git fetch data master    ; git log -1
129
130 git-fetch-optional::
131         cd optional; git fetch optional master; git log -1
132
133 git-fetch-tutorial::
134         cd tutorial; git fetch tutorial master; git log -1
135
136 git-fetch-others::
137         cd others  ; git fetch others master  ; git log -1
138
139 git-merge-all:: git-merge git-merge-data git-merge-optional git-merge-tutorial git-merge-others
140
141 git-merge::
142         cd .       ; git log -1; git merge FETCH_HEAD 
143
144 git-merge-data::
145         cd data    ; git log -1; git merge FETCH_HEAD 
146
147 git-merge-optional::
148         cd optional; git log -1; git merge FETCH_HEAD
149
150 git-merge-tutorial::
151         cd tutorial; git log -1; git merge FETCH_HEAD 
152
153 git-merge-others::
154         cd others  ; git log -1; git merge FETCH_HEAD 
155
156 #
157 # Nickname 
158 #
159
160 git-init-all:: git-init git-init-data git-init-optional git-init-tutorial
161
162 git-init::
163         if [ ! -d .git ] ; then git init        ; fi
164         git remote remove origin; git remote add origin    $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY)
165
166 git-init-data::
167         if [ ! -d data ] ; then mkdir data; fi
168         cd data; git remote remove data; git remote add data      $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_DATA)
169
170 git-init-optional::
171         if [ ! -d optional ] ; then mkdir optional; fi
172         if [ ! -L doc      ] ; then ln -sf optional/doc . ; fi
173         if [ ! -L objects  ] ; then ln -sf optional/objects . ; fi
174         cd optional; git remote remove optional ; git remote add optional  $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OPTIONAL)
175
176 git-init-tutorial::
177         if [ ! -d tutorial ] ; then mkdir tutorial ; fi
178         cd tutorial; git remote remove tutorial ; git remote add tutorial  $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_TUTORIAL)
179
180 git-init-others::
181         if [ ! -d others ] ; then mkdir others; fi
182         cd others ; git remote remove others; git remote add others $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS)
183
184
185 git-clone-all:: git-init git-init-data git-init-optional git-init-tutorial
186
187 git-clone:git-init
188         if [ ! -d  .git ] ; \
189         then \
190                 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY) ./ ; \
191         fi
192
193 git-clone-data: git-init-data
194         cd data;  if [ ! -d .git ] ; \
195         then \
196                 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_DATA) ./; \
197         fi
198
199 git-clone-optional: git-init-optional 
200         cd optional; if [ ! -d .git ] ; \
201         then \
202                 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OPTIONAL) ./ ; \
203         fi
204
205 git-clone-tutorial: git-init-tutorial
206         cd tutorial; if [ ! -d .git ] ; \
207         then \
208                 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_TUTORIAL) ./ ; \
209         fi
210
211 git-clone-others: git-init-others
212         cd others ; if [ ! -d .git ] ; \
213         then \
214                 git clone --depth 1 $${EOS_GITUSER}@$(EOS_GIT_REPOSITRY_OTHERS) ./ ; \
215         fi