1 SUBDIRS = compat libexec got tog gotadmin template gotwebd
3 # -portable: re-enable once upstream is happy: cvg
4 # TODO: gotd gotsh template
7 SUBDIRS += gotd gotsh gotctl gitwrapper
14 include $(top_builddir)/Makefile.common
16 EXTRA_DIST = CHANGES CHANGELOG LICENCE README.portable util/got-portable-ver.sh
24 LIBS += -lm $(zlib_LIBS) $(libbsd_LIBS) $(libmd_LIBS)
25 AM_CPPFLAGS += $(libbsd_CFLAGS) $(libmd_CFLAGS)
27 TEST_TARGETS=compat regress-delta regress-deltify regress-fetch regress-idset \
28 regress-path regress-tog regress-cmdline
35 tests: $(TEST_TARGETS)
38 (export PLATFORM=@PLATFORM@; \
39 cd $(top_builddir)/regress/cmdline || exit $$?; \
40 ./checkout.sh -q -r "$(GOT_TEST_ROOT)"; \
41 ./update.sh -q -r "$(GOT_TEST_ROOT)"; \
42 ./status.sh -q -r "$(GOT_TEST_ROOT)"; \
43 ./log.sh -q -r "$(GOT_TEST_ROOT)"; \
44 ./add.sh -q -r "$(GOT_TEST_ROOT)"; \
45 ./rm.sh -q -r "$(GOT_TEST_ROOT)"; \
46 ./diff.sh -q -r "$(GOT_TEST_ROOT)"; \
47 ./blame.sh -q -r "$(GOT_TEST_ROOT)"; \
48 ./branch.sh -q -r "$(GOT_TEST_ROOT)"; \
49 ./tag.sh -q -r "$(GOT_TEST_ROOT)"; \
50 ./ref.sh -q -r "$(GOT_TEST_ROOT)"; \
51 ./commit.sh -q -r "$(GOT_TEST_ROOT)"; \
52 ./revert.sh -q -r "$(GOT_TEST_ROOT)"; \
53 ./cherrypick.sh -q -r "$(GOT_TEST_ROOT)"; \
54 ./backout.sh -q -r "$(GOT_TEST_ROOT)"; \
55 ./rebase.sh -q -r "$(GOT_TEST_ROOT)"; \
56 ./import.sh -q -r "$(GOT_TEST_ROOT)"; \
57 ./histedit.sh -q -r "$(GOT_TEST_ROOT)"; \
58 ./integrate.sh -q -r "$(GOT_TEST_ROOT)"; \
59 ./merge.sh -q -r "$(GOT_TEST_ROOT)"; \
60 ./stage.sh -q -r "$(GOT_TEST_ROOT)"; \
61 ./unstage.sh -q -r "$(GOT_TEST_ROOT)"; \
62 ./cat.sh -q -r "$(GOT_TEST_ROOT)"; \
63 ./clone.sh -q -r "$(GOT_TEST_ROOT)"; \
64 ./fetch.sh -q -r "$(GOT_TEST_ROOT)"; \
65 ./send.sh -q -r "$(GOT_TEST_ROOT)"; \
66 ./tree.sh -q -r "$(GOT_TEST_ROOT)"; \
67 ./patch.sh -q -r "$(GOT_TEST_ROOT)" \
68 ./pack.sh -q -r "$(GOT_TEST_ROOT)"; \
69 ./cleanup.sh -q -r "$(GOT_TEST_ROOT)")
72 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
73 -o $(top_builddir)/regress/delta/delta_test \
74 $(top_srcdir)/lib/bloom.c \
75 $(top_srcdir)/lib/buf.c \
76 $(top_srcdir)/lib/date.c \
77 $(top_srcdir)/lib/deflate.c \
78 $(top_srcdir)/lib/delta.c \
79 $(top_srcdir)/lib/delta_cache.c \
80 $(top_srcdir)/lib/deltify.c \
81 $(top_srcdir)/lib/error.c \
82 $(top_srcdir)/lib/gotconfig.c \
83 $(top_srcdir)/lib/hash.c \
84 $(top_srcdir)/lib/inflate.c \
85 $(top_srcdir)/lib/lockfile.c \
86 $(top_srcdir)/lib/murmurhash2.c \
87 $(top_srcdir)/lib/object.c \
88 $(top_srcdir)/lib/object_cache.c \
89 $(top_srcdir)/lib/object_create.c \
90 $(top_srcdir)/lib/object_idset.c \
91 $(top_srcdir)/lib/object_open_privsep.c \
92 $(top_srcdir)/lib/object_parse.c \
93 $(top_srcdir)/lib/object_qid.c \
94 $(top_srcdir)/lib/opentemp.c \
95 $(top_srcdir)/lib/pack.c \
96 $(top_srcdir)/lib/pack_create.c \
97 $(top_srcdir)/lib/pack_create_privsep.c \
98 $(top_srcdir)/lib/path.c \
99 $(top_srcdir)/lib/pollfd.c \
100 $(top_srcdir)/lib/privsep.c \
101 $(top_srcdir)/lib/ratelimit.c \
102 $(top_srcdir)/lib/read_gitconfig_privsep.c \
103 $(top_srcdir)/lib/read_gotconfig_privsep.c \
104 $(top_srcdir)/lib/reference.c \
105 $(top_srcdir)/lib/reference_parse.c \
106 $(top_srcdir)/lib/repository.c \
107 $(top_srcdir)/lib/sigs.c \
108 $(top_srcdir)/regress/delta/delta_test.c \
109 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
110 $(top_builddir)/regress/delta/delta_test
113 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
114 -o $(top_builddir)/regress/deltify/deltify_test \
115 $(top_srcdir)/lib/bloom.c \
116 $(top_srcdir)/lib/buf.c \
117 $(top_srcdir)/lib/date.c \
118 $(top_srcdir)/lib/deflate.c \
119 $(top_srcdir)/lib/delta.c \
120 $(top_srcdir)/lib/delta_cache.c \
121 $(top_srcdir)/lib/deltify.c \
122 $(top_srcdir)/lib/error.c \
123 $(top_srcdir)/lib/gotconfig.c \
124 $(top_srcdir)/lib/hash.c \
125 $(top_srcdir)/lib/inflate.c \
126 $(top_srcdir)/lib/lockfile.c \
127 $(top_srcdir)/lib/murmurhash2.c \
128 $(top_srcdir)/lib/object.c \
129 $(top_srcdir)/lib/object_cache.c \
130 $(top_srcdir)/lib/object_create.c \
131 $(top_srcdir)/lib/object_idset.c \
132 $(top_srcdir)/lib/object_open_privsep.c \
133 $(top_srcdir)/lib/object_parse.c \
134 $(top_srcdir)/lib/object_qid.c \
135 $(top_srcdir)/lib/opentemp.c \
136 $(top_srcdir)/lib/pack.c \
137 $(top_srcdir)/lib/pack_create.c \
138 $(top_srcdir)/lib/pack_create_privsep.c \
139 $(top_srcdir)/lib/path.c \
140 $(top_srcdir)/lib/pollfd.c \
141 $(top_srcdir)/lib/privsep.c \
142 $(top_srcdir)/lib/ratelimit.c \
143 $(top_srcdir)/lib/read_gitconfig_privsep.c \
144 $(top_srcdir)/lib/read_gotconfig_privsep.c \
145 $(top_srcdir)/lib/reference.c \
146 $(top_srcdir)/lib/reference_parse.c \
147 $(top_srcdir)/lib/repository.c \
148 $(top_srcdir)/lib/sigs.c \
149 $(top_srcdir)/regress/deltify/deltify_test.c \
150 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
151 $(top_builddir)/regress/deltify/deltify_test
154 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
155 -o $(top_builddir)/regress/fetch/fetch_test \
156 $(top_srcdir)/lib/bloom.c \
157 $(top_srcdir)/lib/buf.c \
158 $(top_srcdir)/lib/date.c \
159 $(top_srcdir)/lib/deflate.c \
160 $(top_srcdir)/lib/delta.c \
161 $(top_srcdir)/lib/delta_cache.c \
162 $(top_srcdir)/lib/deltify.c \
163 $(top_srcdir)/lib/dial.c \
164 $(top_srcdir)/lib/error.c \
165 $(top_srcdir)/lib/fetch.c \
166 $(top_srcdir)/lib/gotconfig.c \
167 $(top_srcdir)/lib/hash.c \
168 $(top_srcdir)/lib/inflate.c \
169 $(top_srcdir)/lib/lockfile.c \
170 $(top_srcdir)/lib/murmurhash2.c \
171 $(top_srcdir)/lib/object.c \
172 $(top_srcdir)/lib/object_cache.c \
173 $(top_srcdir)/lib/object_create.c \
174 $(top_srcdir)/lib/object_idset.c \
175 $(top_srcdir)/lib/object_open_privsep.c \
176 $(top_srcdir)/lib/object_parse.c \
177 $(top_srcdir)/lib/object_qid.c \
178 $(top_srcdir)/lib/opentemp.c \
179 $(top_srcdir)/lib/pack.c \
180 $(top_srcdir)/lib/pack_create.c \
181 $(top_srcdir)/lib/pack_create_privsep.c \
182 $(top_srcdir)/lib/path.c \
183 $(top_srcdir)/lib/pollfd.c \
184 $(top_srcdir)/lib/privsep.c \
185 $(top_srcdir)/lib/ratelimit.c \
186 $(top_srcdir)/lib/read_gitconfig_privsep.c \
187 $(top_srcdir)/lib/read_gotconfig_privsep.c \
188 $(top_srcdir)/lib/reference.c \
189 $(top_srcdir)/lib/reference_parse.c \
190 $(top_srcdir)/lib/repository.c \
191 $(top_srcdir)/lib/sigs.c \
192 $(top_srcdir)/regress/fetch/fetch_test.c \
193 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) -lm && \
194 $(top_builddir)/regress/fetch/fetch_test
197 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
198 -o $(top_builddir)/regress/idset/idset_test \
199 $(top_srcdir)/lib/bloom.c \
200 $(top_srcdir)/lib/buf.c \
201 $(top_srcdir)/lib/date.c \
202 $(top_srcdir)/lib/deflate.c \
203 $(top_srcdir)/lib/delta.c \
204 $(top_srcdir)/lib/delta_cache.c \
205 $(top_srcdir)/lib/deltify.c \
206 $(top_srcdir)/lib/dial.c \
207 $(top_srcdir)/lib/error.c \
208 $(top_srcdir)/lib/fetch.c \
209 $(top_srcdir)/lib/gotconfig.c \
210 $(top_srcdir)/lib/hash.c \
211 $(top_srcdir)/lib/inflate.c \
212 $(top_srcdir)/lib/lockfile.c \
213 $(top_srcdir)/lib/murmurhash2.c \
214 $(top_srcdir)/lib/object.c \
215 $(top_srcdir)/lib/object_cache.c \
216 $(top_srcdir)/lib/object_create.c \
217 $(top_srcdir)/lib/object_idset.c \
218 $(top_srcdir)/lib/object_open_privsep.c \
219 $(top_srcdir)/lib/object_parse.c \
220 $(top_srcdir)/lib/object_qid.c \
221 $(top_srcdir)/lib/opentemp.c \
222 $(top_srcdir)/lib/pack.c \
223 $(top_srcdir)/lib/pack_create.c \
224 $(top_srcdir)/lib/pack_create_privsep.c \
225 $(top_srcdir)/lib/path.c \
226 $(top_srcdir)/lib/pollfd.c \
227 $(top_srcdir)/lib/privsep.c \
228 $(top_srcdir)/lib/ratelimit.c \
229 $(top_srcdir)/lib/read_gitconfig_privsep.c \
230 $(top_srcdir)/lib/read_gotconfig_privsep.c \
231 $(top_srcdir)/lib/reference.c \
232 $(top_srcdir)/lib/reference_parse.c \
233 $(top_srcdir)/lib/repository.c \
234 $(top_srcdir)/lib/sigs.c \
235 $(top_srcdir)/regress/idset/idset_test.c \
236 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
237 $(top_builddir)/regress/idset/idset_test
240 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
241 -o $(top_builddir)/regress/path/path_test \
242 $(top_srcdir)/lib/bloom.c \
243 $(top_srcdir)/lib/buf.c \
244 $(top_srcdir)/lib/date.c \
245 $(top_srcdir)/lib/deflate.c \
246 $(top_srcdir)/lib/delta.c \
247 $(top_srcdir)/lib/delta_cache.c \
248 $(top_srcdir)/lib/deltify.c \
249 $(top_srcdir)/lib/dial.c \
250 $(top_srcdir)/lib/error.c \
251 $(top_srcdir)/lib/fetch.c \
252 $(top_srcdir)/lib/gotconfig.c \
253 $(top_srcdir)/lib/hash.c \
254 $(top_srcdir)/lib/inflate.c \
255 $(top_srcdir)/lib/lockfile.c \
256 $(top_srcdir)/lib/murmurhash2.c \
257 $(top_srcdir)/lib/object.c \
258 $(top_srcdir)/lib/object_cache.c \
259 $(top_srcdir)/lib/object_create.c \
260 $(top_srcdir)/lib/object_idset.c \
261 $(top_srcdir)/lib/object_open_privsep.c \
262 $(top_srcdir)/lib/object_parse.c \
263 $(top_srcdir)/lib/object_qid.c \
264 $(top_srcdir)/lib/opentemp.c \
265 $(top_srcdir)/lib/pack.c \
266 $(top_srcdir)/lib/pack_create.c \
267 $(top_srcdir)/lib/pack_create_privsep.c \
268 $(top_srcdir)/lib/path.c \
269 $(top_srcdir)/lib/pollfd.c \
270 $(top_srcdir)/lib/privsep.c \
271 $(top_srcdir)/lib/ratelimit.c \
272 $(top_srcdir)/lib/read_gitconfig_privsep.c \
273 $(top_srcdir)/lib/read_gotconfig_privsep.c \
274 $(top_srcdir)/lib/reference.c \
275 $(top_srcdir)/lib/reference_parse.c \
276 $(top_srcdir)/lib/repository.c \
277 $(top_srcdir)/lib/sigs.c \
278 $(top_srcdir)/regress/path/path_test.c \
279 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
280 $(top_builddir)/regress/path/path_test
283 (cd $(top_builddir)/regress/tog || exit $$?; \
284 ./log.sh -q -r "$(GOT_TEST_ROOT)");