OSDN Git Service

modified: Makefile
[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_DATA= 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 ""
26         @echo "---- option ----"
27         @echo "     [] : base only"
28         @echo "     [-data]     : data (for test)"
29         @echo "     [-tutorial] : tutorial"
30         @echo "     [-optional] : optional(for documents)"
31         @echo "     [-others] : other source codes for utils"
32         @echo "     [-all] : all"
33         @echo ""
34         @echo ">>>> Setting"
35         @echo "---- To set Eos ----"
36         @echo " $$ make setting"
37         @echo " $$ make rebuild"
38         @echo ""
39         @echo ">>>> Rebuild"
40         @echo "---- To rebuild source codes of Eos ----"
41         @echo " $$ make rebuild"
42         @echo "---- To set Eos ----"
43         @echo " $$ make setting"
44         @echo ""
45         @echo ">>>> Setting for Eos utils using other softwares "
46         @echo "---- To set Eos ----"
47         @echo " $$ cd util; make setting"
48         @echo " $$ cd util; make rebuild"
49
50
51
52 rebuild: rebuild-Objects rebuild-Tools
53
54 rebuild-Objects:
55         cd src/Objects;  make check; make depend; make ; make install
56
57 rebuild-Tools:
58         cd src/Tools;    make check; make depend; make ; make install
59
60 setting:relink
61
62 relink:
63         ln -sf optional/doc .
64         ln -sf optional/objects .
65         ln -sf data/example .
66
67 git-add-all:: git-add git-add-data git-add-optional git-add-tutorial git-add-others
68
69 git-add::
70         git add -v .
71
72 git-add-optional::
73         cd optional; git add . 
74
75 git-add-data::
76         cd data; git add . 
77
78 git-add-tutorial::
79         cd tutorial; git add . 
80
81 git-add-others::
82         cd others; git add . 
83
84 git-commit-all:: git-commit git-commit-data git-commit-optional git-commit-tutorial git-commit-others
85
86 git-commit::
87         git commit 
88
89 git-commit-optional::
90         cd optional; git commit  
91
92 git-commit-data::
93         cd data; git commit 
94
95 git-commit-tutorial::
96         cd tutorial; git commit 
97
98 git-commit-others::
99         cd others; git commit 
100
101 git-backup::
102         git push $(EOS_GIT_BACKUPSITE) master  --tags
103
104 git-push-all:: git-push git-push-data git-push-optional git-push-tutorial git-push-others
105
106 git-push::
107         git push origin master  --tags
108
109 git-push-optional::
110         cd optional; git push optional master --tags
111
112 git-push-data::
113         cd data; git push data master --tags
114
115 git-push-tutorial::
116         cd tutorial; git push tutorial master --tags 
117
118 git-push-others::
119         cd others; git push others master --tags
120
121 git-fetch-all:: git-fetch git-fetch-data git-fetch-optional git-fetch-tutorial git-fetch-others
122
123 git-fetch::
124         cd .       ; git fetch origin master  ; git log -1
125
126 git-fetch-data::
127         cd data    ; git fetch data master    ; git log -1
128
129 git-fetch-optional::
130         cd optional; git fetch optional master; git log -1
131
132 git-fetch-tutorial::
133         cd tutorial; git fetch tutorial master; git log -1
134
135 git-fetch-others::
136         cd others  ; git fetch others master  ; git log -1
137
138 git-merge-all:: git-merge git-merge-data git-merge-optional git-merge-tutorial git-merge-others
139
140 git-merge::
141         cd .       ; git log -1; git merge FETCH_HEAD 
142
143 git-merge-data::
144         cd data    ; git log -1; git merge FETCH_HEAD 
145
146 git-merge-optional::
147         cd optional; git log -1; git merge FETCH_HEAD
148
149 git-merge-tutorial::
150         cd tutorial; git log -1; git merge FETCH_HEAD 
151
152 git-merge-others::
153         cd others  ; git log -1; git merge FETCH_HEAD 
154
155 #
156 # Nickname 
157 #
158
159 git-init-all:: git-init git-init-data git-init-optional git-init-tutorial
160
161 git-init::
162         git remote add origin    $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY)
163
164 git-init-data::
165         if [ ! -d data ] ; then mkdir data; fi
166         cd data; git remote add data      $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY_DATA)
167
168 git-init-optional::
169         if [ ! -d optional ] ; then mkdir tutorial ; fi
170         if [ ! -L doc      ] ; then ln -sf optional/doc . ; fi
171         if [ ! -L objects  ] ; then ln -sf optional/objects . ; fi
172         cd optional; git remote add optional  $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY_OPTIONAL)
173
174 git-init-tutorial::
175         if [ ! -d tutorial ] ; then mkdir tutorial ; fi
176         cd tutorial; git remote add tutorial  $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY_TUTORIAL)
177
178 git-init-others::
179         if [ ! -d others ] ; then mkdir others; fi
180         cd others ; git remote add others $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY_OTHERS)
181
182
183