OSDN Git Service

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