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