OSDN Git Service

Merge branch 'master' of git.sourceforge.jp:/gitroot/eos/base into HEAD
[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 -v .
67
68 git-add-optional::
69         cd optional; git add . 
70
71 git-add-data::
72         cd data; git add . 
73
74 git-add-tutorial::
75         cd tutorial; git add . 
76
77 git-add-others::
78         cd others; git add . 
79
80 git-commit-all:: git-commit git-commit-data git-commit-optional git-commit-tutorial git-commit-others
81
82 git-commit::
83         git commit 
84
85 git-commit-optional::
86         cd optional; git commit  
87
88 git-commit-data::
89         cd data; git commit 
90
91 git-commit-tutorial::
92         cd tutorial; git commit 
93
94 git-commit-others::
95         cd others; git commit 
96
97 git-backup::
98         git push $(EOS_GIT_BACKUPSITE) master  --tags
99
100 git-push-all:: git-push git-push-data git-push-optional git-push-tutorial git-push-others
101
102 git-push::
103         git push origin master  --tags
104
105 git-push-optional::
106         cd optional; git push optional master --tags
107
108 git-push-data::
109         cd data; git push data master --tags
110
111 git-push-tutorial::
112         cd tutorial; git push tutorial master --tags 
113
114 git-push-others::
115         cd others; git push others master --tags
116
117 git-fetch-all:: git-fetch git-fetch-data git-fetch-optional git-fetch-tutorial git-fetch-others
118
119 git-fetch::
120         cd .       ; git fetch origin master  ; git log -1
121
122 git-fetch-data::
123         cd data    ; git fetch data master    ; git log -1
124
125 git-fetch-optional::
126         cd optional; git fetch optional master; git log -1
127
128 git-fetch-tutorial::
129         cd tutorial; git fetch tutorial master; git log -1
130
131 git-fetch-others::
132         cd others  ; git fetch others master  ; git log -1
133
134 git-merge-all:: git-merge git-merge-data git-merge-optional git-merge-tutorial git-merge-others
135
136 git-merge::
137         cd .       ; git log -1; git merge FETCH_HEAD 
138
139 git-merge-data::
140         cd data    ; git log -1; git merge FETCH_HEAD 
141
142 git-merge-optional::
143         cd optional; git log -1; git merge FETCH_HEAD
144
145 git-merge-tutorial::
146         cd tutorial; git log -1; git merge FETCH_HEAD 
147
148 git-merge-others::
149         cd others  ; git log -1; git merge FETCH_HEAD 
150
151 #
152 # Nickname 
153 #
154
155 git-init-all:: git-init git-init-data git-init-optional git-init-tutorial
156
157 git-init::
158         git remote add origin    $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY)
159
160 git-init-data::
161         if [ ! -d data ] ; then mkdir data; fi
162         cd data; git remote add data      $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY_DATA)
163
164 git-init-optional::
165         if [ ! -d optional ] ; then mkdir tutorial ; fi
166         if [ ! -L doc      ] ; then ln -sf optional/doc . ; fi
167         if [ ! -L objects  ] ; then ln -sf optional/objects . ; fi
168         cd optional; git remote add optional  $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY_OPTIONAL)
169
170 git-init-tutorial::
171         if [ ! -d tutorial ] ; then mkdir tutorial ; fi
172         cd tutorial; git remote add tutorial  $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY_TUTORIAL)
173
174 git-init-others::
175         if [ ! -d others ] ; then mkdir others; fi
176         cd others ; git remote add others $${EOS_GIT_USER}@$(EOS_GIT_REPOSITRY_OTHERS)
177
178
179