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