Blame


1 ff36aeea 2022-07-16 thomas SUBDIRS = compat libexec got tog gotadmin gotwebd
2 dd038bc6 2021-09-21 thomas.ad
3 0ca5b679 2021-10-09 thomas include $(top_builddir)/Makefile.common
4 0ca5b679 2021-10-09 thomas
5 0b2bb718 2021-09-21 thomas.ad EXTRA_DIST = CHANGES CHANGELOG
6 0b2bb718 2021-09-21 thomas.ad
7 dd038bc6 2021-09-21 thomas.ad LDADD = $(LIBOBJS)
8 5a7ef102 2021-10-09 thomas if HOST_FREEBSD
9 5a7ef102 2021-10-09 thomas LDADD += -lmd
10 5a7ef102 2021-10-09 thomas LIBS += -lmd
11 5a7ef102 2021-10-09 thomas endif
12 dd038bc6 2021-09-21 thomas.ad
13 cb3c9f1c 2022-10-13 thomas LIBS += -lm
14 cb3c9f1c 2022-10-13 thomas
15 5a7ef102 2021-10-09 thomas TEST_TARGETS=regress-delta regress-deltify regress-fetch regress-idset \
16 5a7ef102 2021-10-09 thomas regress-path regress-cmdline
17 5a7ef102 2021-10-09 thomas GOT_TEST_ROOT=/tmp
18 5a7ef102 2021-10-09 thomas
19 5a7ef102 2021-10-09 thomas tests: $(TEST_TARGETS)
20 5a7ef102 2021-10-09 thomas
21 5a7ef102 2021-10-09 thomas regress-cmdline:
22 1ff9fea4 2021-11-23 thomas (export PLATFORM=@PLATFORM@; \
23 1ff9fea4 2021-11-23 thomas cd $(top_builddir)/regress/cmdline || exit $$?; \
24 3c79ece5 2022-06-23 op ./checkout.sh -q -r "$(GOT_TEST_ROOT)"; \
25 3c79ece5 2022-06-23 op ./update.sh -q -r "$(GOT_TEST_ROOT)"; \
26 3c79ece5 2022-06-23 op ./status.sh -q -r "$(GOT_TEST_ROOT)"; \
27 3c79ece5 2022-06-23 op ./log.sh -q -r "$(GOT_TEST_ROOT)"; \
28 3c79ece5 2022-06-23 op ./add.sh -q -r "$(GOT_TEST_ROOT)"; \
29 3c79ece5 2022-06-23 op ./rm.sh -q -r "$(GOT_TEST_ROOT)"; \
30 3c79ece5 2022-06-23 op ./diff.sh -q -r "$(GOT_TEST_ROOT)"; \
31 3c79ece5 2022-06-23 op ./blame.sh -q -r "$(GOT_TEST_ROOT)"; \
32 3c79ece5 2022-06-23 op ./branch.sh -q -r "$(GOT_TEST_ROOT)"; \
33 3c79ece5 2022-06-23 op ./tag.sh -q -r "$(GOT_TEST_ROOT)"; \
34 3c79ece5 2022-06-23 op ./ref.sh -q -r "$(GOT_TEST_ROOT)"; \
35 3c79ece5 2022-06-23 op ./commit.sh -q -r "$(GOT_TEST_ROOT)"; \
36 3c79ece5 2022-06-23 op ./revert.sh -q -r "$(GOT_TEST_ROOT)"; \
37 3c79ece5 2022-06-23 op ./cherrypick.sh -q -r "$(GOT_TEST_ROOT)"; \
38 3c79ece5 2022-06-23 op ./backout.sh -q -r "$(GOT_TEST_ROOT)"; \
39 3c79ece5 2022-06-23 op ./rebase.sh -q -r "$(GOT_TEST_ROOT)"; \
40 3c79ece5 2022-06-23 op ./import.sh -q -r "$(GOT_TEST_ROOT)"; \
41 3c79ece5 2022-06-23 op ./histedit.sh -q -r "$(GOT_TEST_ROOT)"; \
42 3c79ece5 2022-06-23 op ./integrate.sh -q -r "$(GOT_TEST_ROOT)"; \
43 3c79ece5 2022-06-23 op ./merge.sh -q -r "$(GOT_TEST_ROOT)"; \
44 3c79ece5 2022-06-23 op ./stage.sh -q -r "$(GOT_TEST_ROOT)"; \
45 3c79ece5 2022-06-23 op ./unstage.sh -q -r "$(GOT_TEST_ROOT)"; \
46 3c79ece5 2022-06-23 op ./cat.sh -q -r "$(GOT_TEST_ROOT)"; \
47 3c79ece5 2022-06-23 op ./clone.sh -q -r "$(GOT_TEST_ROOT)"; \
48 3c79ece5 2022-06-23 op ./fetch.sh -q -r "$(GOT_TEST_ROOT)"; \
49 3c79ece5 2022-06-23 op ./send.sh -q -r "$(GOT_TEST_ROOT)"; \
50 3c79ece5 2022-06-23 op ./tree.sh -q -r "$(GOT_TEST_ROOT)"; \
51 d5df63da 2022-03-09 thomas ./patch.sh -q -r "$(GOT_TEST_ROOT)" \
52 3c79ece5 2022-06-23 op ./pack.sh -q -r "$(GOT_TEST_ROOT)"; \
53 3c79ece5 2022-06-23 op ./cleanup.sh -q -r "$(GOT_TEST_ROOT)")
54 5a7ef102 2021-10-09 thomas
55 5a7ef102 2021-10-09 thomas regress-delta:
56 5a7ef102 2021-10-09 thomas $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
57 5a7ef102 2021-10-09 thomas -o $(top_builddir)/regress/delta/delta_test \
58 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/bloom.c \
59 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/buf.c \
60 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/date.c \
61 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/deflate.c \
62 5a7ef102 2021-10-09 thomas $(top_srcdir)/lib/delta.c \
63 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/delta_cache.c \
64 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/deltify.c \
65 5a7ef102 2021-10-09 thomas $(top_srcdir)/lib/error.c \
66 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/gotconfig.c \
67 5a7ef102 2021-10-09 thomas $(top_srcdir)/lib/inflate.c \
68 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/lockfile.c \
69 fc16ecdf 2022-10-17 thomas $(top_srcdir)/lib/murmurhash2.c \
70 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object.c \
71 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_cache.c \
72 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_create.c \
73 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_idset.c \
74 b61ceafc 2022-10-13 thomas $(top_srcdir)/lib/object_open_privsep.c \
75 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_parse.c \
76 fc16ecdf 2022-10-17 thomas $(top_srcdir)/lib/opentemp.c \
77 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/pack.c \
78 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/pack_create.c \
79 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/pack_create_privsep.c \
80 fc16ecdf 2022-10-17 thomas $(top_srcdir)/lib/path.c \
81 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/privsep.c \
82 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/ratelimit.c \
83 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/read_gitconfig_privsep.c \
84 400c1baa 2022-10-13 thomas $(top_srcdir)/lib/read_gotconfig_privsep.c \
85 fc16ecdf 2022-10-17 thomas $(top_srcdir)/lib/reference.c \
86 fc16ecdf 2022-10-17 thomas $(top_srcdir)/lib/repository.c \
87 fc16ecdf 2022-10-17 thomas $(top_srcdir)/lib/sha1.c \
88 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/sigs.c \
89 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/regress/delta/delta_test.c \
90 5a7ef102 2021-10-09 thomas -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
91 5a7ef102 2021-10-09 thomas $(top_builddir)/regress/delta/delta_test
92 5a7ef102 2021-10-09 thomas
93 5a7ef102 2021-10-09 thomas regress-deltify:
94 5a7ef102 2021-10-09 thomas $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
95 5a7ef102 2021-10-09 thomas -o $(top_builddir)/regress/deltify/deltify_test \
96 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/bloom.c \
97 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/buf.c \
98 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/date.c \
99 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/deflate.c \
100 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/delta.c \
101 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/delta_cache.c \
102 5a7ef102 2021-10-09 thomas $(top_srcdir)/lib/deltify.c \
103 5a7ef102 2021-10-09 thomas $(top_srcdir)/lib/error.c \
104 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/gotconfig.c \
105 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/inflate.c \
106 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/lockfile.c \
107 ebdfb05b 2022-02-12 thomas $(top_srcdir)/lib/murmurhash2.c \
108 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object.c \
109 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_cache.c \
110 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_create.c \
111 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_idset.c \
112 b61ceafc 2022-10-13 thomas $(top_srcdir)/lib/object_open_privsep.c \
113 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_parse.c \
114 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/opentemp.c \
115 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/pack.c \
116 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/pack_create.c \
117 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/pack_create_privsep.c \
118 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/path.c \
119 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/privsep.c \
120 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/ratelimit.c \
121 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/read_gitconfig_privsep.c \
122 fc16ecdf 2022-10-17 thomas $(top_srcdir)/lib/read_gotconfig_privsep.c \
123 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/reference.c \
124 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/repository.c \
125 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/sha1.c \
126 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/sigs.c \
127 fc16ecdf 2022-10-17 thomas $(top_srcdir)/regress/deltify/deltify_test.c \
128 5a7ef102 2021-10-09 thomas -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
129 5a7ef102 2021-10-09 thomas $(top_builddir)/regress/deltify/deltify_test
130 5a7ef102 2021-10-09 thomas
131 5a7ef102 2021-10-09 thomas regress-fetch:
132 5a7ef102 2021-10-09 thomas $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
133 5a7ef102 2021-10-09 thomas -o $(top_builddir)/regress/fetch/fetch_test \
134 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/bloom.c \
135 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/buf.c \
136 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/date.c \
137 5a7ef102 2021-10-09 thomas $(top_srcdir)/lib/deflate.c \
138 5a7ef102 2021-10-09 thomas $(top_srcdir)/lib/delta.c \
139 5a7ef102 2021-10-09 thomas $(top_srcdir)/lib/delta_cache.c \
140 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/deltify.c \
141 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/dial.c \
142 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/error.c \
143 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/fetch.c \
144 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/gotconfig.c \
145 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/inflate.c \
146 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/lockfile.c \
147 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/murmurhash2.c \
148 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object.c \
149 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_cache.c \
150 5a7ef102 2021-10-09 thomas $(top_srcdir)/lib/object_create.c \
151 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_idset.c \
152 b61ceafc 2022-10-13 thomas $(top_srcdir)/lib/object_open_privsep.c \
153 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_parse.c \
154 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/opentemp.c \
155 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/pack.c \
156 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/pack_create.c \
157 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/pack_create_privsep.c \
158 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/path.c \
159 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/privsep.c \
160 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/ratelimit.c \
161 d348087d 2022-10-13 thomas $(top_srcdir)/lib/read_gitconfig_privsep.c \
162 400c1baa 2022-10-13 thomas $(top_srcdir)/lib/read_gotconfig_privsep.c \
163 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/reference.c \
164 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/repository.c \
165 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/sha1.c \
166 1d7053d6 2022-07-06 thomas $(top_srcdir)/lib/sigs.c \
167 fc16ecdf 2022-10-17 thomas $(top_srcdir)/regress/fetch/fetch_test.c \
168 37fdd5cc 2021-10-15 thomas -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) -lm && \
169 5a7ef102 2021-10-09 thomas $(top_builddir)/regress/fetch/fetch_test
170 5a7ef102 2021-10-09 thomas
171 5a7ef102 2021-10-09 thomas regress-idset:
172 5a7ef102 2021-10-09 thomas $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
173 5a7ef102 2021-10-09 thomas -o $(top_builddir)/regress/idset/idset_test \
174 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/bloom.c \
175 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/buf.c \
176 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/date.c \
177 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/deflate.c \
178 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/delta.c \
179 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/delta_cache.c \
180 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/deltify.c \
181 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/dial.c \
182 5a7ef102 2021-10-09 thomas $(top_srcdir)/lib/error.c \
183 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/fetch.c \
184 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/gotconfig.c \
185 5a7ef102 2021-10-09 thomas $(top_srcdir)/lib/inflate.c \
186 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/lockfile.c \
187 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/murmurhash2.c \
188 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object.c \
189 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_cache.c \
190 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_create.c \
191 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_idset.c \
192 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_open_privsep.c \
193 5a7ef102 2021-10-09 thomas $(top_srcdir)/lib/object_parse.c \
194 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/opentemp.c \
195 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/pack.c \
196 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/pack_create.c \
197 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/pack_create_privsep.c \
198 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/path.c \
199 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/privsep.c \
200 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/ratelimit.c \
201 d348087d 2022-10-13 thomas $(top_srcdir)/lib/read_gitconfig_privsep.c \
202 400c1baa 2022-10-13 thomas $(top_srcdir)/lib/read_gotconfig_privsep.c \
203 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/reference.c \
204 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/repository.c \
205 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/sha1.c \
206 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/sigs.c \
207 fc16ecdf 2022-10-17 thomas $(top_srcdir)/regress/idset/idset_test.c \
208 5a7ef102 2021-10-09 thomas -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
209 5a7ef102 2021-10-09 thomas $(top_builddir)/regress/idset/idset_test
210 5a7ef102 2021-10-09 thomas
211 5a7ef102 2021-10-09 thomas regress-path:
212 5a7ef102 2021-10-09 thomas $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
213 5a7ef102 2021-10-09 thomas -o $(top_builddir)/regress/path/path_test \
214 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/bloom.c \
215 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/buf.c \
216 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/date.c \
217 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/deflate.c \
218 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/delta.c \
219 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/delta_cache.c \
220 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/deltify.c \
221 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/dial.c \
222 5a7ef102 2021-10-09 thomas $(top_srcdir)/lib/error.c \
223 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/fetch.c \
224 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/gotconfig.c \
225 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/inflate.c \
226 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/lockfile.c \
227 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/murmurhash2.c \
228 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object.c \
229 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_cache.c \
230 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_create.c \
231 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_idset.c \
232 b61ceafc 2022-10-13 thomas $(top_srcdir)/lib/object_open_privsep.c \
233 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/object_parse.c \
234 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/opentemp.c \
235 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/pack.c \
236 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/pack_create.c \
237 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/pack_create_privsep.c \
238 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/path.c \
239 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/privsep.c \
240 948a2b91 2022-10-17 thomas $(top_srcdir)/lib/ratelimit.c \
241 d348087d 2022-10-13 thomas $(top_srcdir)/lib/read_gitconfig_privsep.c \
242 400c1baa 2022-10-13 thomas $(top_srcdir)/lib/read_gotconfig_privsep.c \
243 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/reference.c \
244 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/repository.c \
245 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/sha1.c \
246 cb3c9f1c 2022-10-13 thomas $(top_srcdir)/lib/sigs.c \
247 fc16ecdf 2022-10-17 thomas $(top_srcdir)/regress/path/path_test.c \
248 5a7ef102 2021-10-09 thomas -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
249 5a7ef102 2021-10-09 thomas $(top_builddir)/regress/path/path_test