fix amount of purged objects shown in gotadmin cleanup's final progress report
[got-portable.git] / Makefile.am
blobcad0455ed2f574e43f4f29930658204783d907c4
1 SUBDIRS = compat libexec got tog gotadmin
3 include $(top_builddir)/Makefile.common
5 EXTRA_DIST = CHANGES CHANGELOG
7 LDADD = $(LIBOBJS)
8 if HOST_FREEBSD
9 LDADD += -lmd
10 LIBS += -lmd
11 endif
13 TEST_TARGETS=regress-delta regress-deltify regress-fetch regress-idset \
14              regress-path regress-cmdline
15 GOT_TEST_ROOT=/tmp
17 tests: $(TEST_TARGETS)
19 regress-cmdline:
20         (export PLATFORM=@PLATFORM@;                            \
21         cd $(top_builddir)/regress/cmdline || exit $$?;         \
22         ./checkout.sh -r "$(GOT_TEST_ROOT)";                    \
23         ./update.sh -r "$(GOT_TEST_ROOT)";                      \
24         ./status.sh -r "$(GOT_TEST_ROOT)";                      \
25         ./log.sh -r "$(GOT_TEST_ROOT)";                         \
26         ./add.sh -r "$(GOT_TEST_ROOT)";                         \
27         ./rm.sh -r "$(GOT_TEST_ROOT)";                          \
28         ./diff.sh -r "$(GOT_TEST_ROOT)";                        \
29         ./blame.sh -r "$(GOT_TEST_ROOT)";                       \
30         ./branch.sh -r "$(GOT_TEST_ROOT)";                      \
31         ./tag.sh -r "$(GOT_TEST_ROOT)";                         \
32         ./ref.sh -r "$(GOT_TEST_ROOT)";                         \
33         ./commit.sh -r "$(GOT_TEST_ROOT)";                      \
34         ./revert.sh -r "$(GOT_TEST_ROOT)";                      \
35         ./cherrypick.sh -r "$(GOT_TEST_ROOT)";                  \
36         ./backout.sh -r "$(GOT_TEST_ROOT)";                     \
37         ./rebase.sh -r "$(GOT_TEST_ROOT)";                      \
38         ./import.sh -r "$(GOT_TEST_ROOT)";                      \
39         ./histedit.sh -r "$(GOT_TEST_ROOT)";                    \
40         ./integrate.sh -r "$(GOT_TEST_ROOT)";                   \
41         ./merge.sh -r "$(GOT_TEST_ROOT)";                       \
42         ./stage.sh -r "$(GOT_TEST_ROOT)";                       \
43         ./unstage.sh -r "$(GOT_TEST_ROOT)";                     \
44         ./cat.sh -r "$(GOT_TEST_ROOT)";                         \
45         ./clone.sh -r "$(GOT_TEST_ROOT)";                       \
46         ./fetch.sh -r "$(GOT_TEST_ROOT)";                       \
47         ./send.sh -r "$(GOT_TEST_ROOT)";                        \
48         ./tree.sh -r "$(GOT_TEST_ROOT)";                        \
49         ./pack.sh -r "$(GOT_TEST_ROOT)";                        \
50         ./cleanup.sh -r "$(GOT_TEST_ROOT)")
52 regress-delta:
53         $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
54                 -o $(top_builddir)/regress/delta/delta_test \
55                 $(top_srcdir)/lib/delta.c \
56                 $(top_srcdir)/lib/error.c \
57                 $(top_srcdir)/lib/opentemp.c \
58                 $(top_srcdir)/lib/path.c \
59                 $(top_srcdir)/lib/inflate.c \
60                 $(top_srcdir)/lib/sha1.c \
61                 $(top_srcdir)/regress/delta/delta_test.c \
62                 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
63                         $(top_builddir)/regress/delta/delta_test
65 regress-deltify:
66         $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
67                 -o $(top_builddir)/regress/deltify/deltify_test \
68                 $(top_srcdir)/regress/deltify/deltify_test.c \
69                 $(top_srcdir)/lib/deltify.c \
70                 $(top_srcdir)/lib/error.c \
71                 $(top_srcdir)/lib/opentemp.c \
72                 $(top_srcdir)/lib/sha1.c \
73                 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
74                         $(top_builddir)/regress/deltify/deltify_test
76 regress-fetch:
77         $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
78                 -o $(top_builddir)/regress/fetch/fetch_test \
79                 $(top_srcdir)/regress/fetch/fetch_test.c \
80                 $(top_srcdir)/lib/error.c \
81                 $(top_srcdir)/lib/privsep.c \
82                 $(top_srcdir)/lib/reference.c \
83                 $(top_srcdir)/lib/sha1.c \
84                 $(top_srcdir)/lib/object.c \
85                 $(top_srcdir)/lib/object_parse.c \
86                 $(top_srcdir)/lib/path.c \
87                 $(top_srcdir)/lib/opentemp.c \
88                 $(top_srcdir)/lib/repository.c \
89                 $(top_srcdir)/lib/lockfile.c \
90                 $(top_srcdir)/lib/object_cache.c \
91                 $(top_srcdir)/lib/pack.c \
92                 $(top_srcdir)/lib/inflate.c \
93                 $(top_srcdir)/lib/deflate.c \
94                 $(top_srcdir)/lib/delta.c \
95                 $(top_srcdir)/lib/delta_cache.c \
96                 $(top_srcdir)/lib/object_idset.c \
97                 $(top_srcdir)/lib/object_create.c \
98                 $(top_srcdir)/lib/fetch.c \
99                 $(top_srcdir)/lib/gotconfig.c \
100                 $(top_srcdir)/lib/dial.c \
101                 $(top_srcdir)/lib/bloom.c \
102                 $(top_srcdir)/lib/murmurhash2.c \
103                 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) -lm && \
104                         $(top_builddir)/regress/fetch/fetch_test
106 regress-idset:
107         $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
108                 -o $(top_builddir)/regress/idset/idset_test \
109                 $(top_srcdir)/regress/idset/idset_test.c \
110                 $(top_srcdir)/lib/error.c \
111                 $(top_srcdir)/lib/sha1.c \
112                 $(top_srcdir)/lib/object_idset.c \
113                 $(top_srcdir)/lib/inflate.c \
114                 $(top_srcdir)/lib/path.c \
115                 $(top_srcdir)/lib/object_parse.c \
116                 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
117                         $(top_builddir)/regress/idset/idset_test
119 regress-path:
120         $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
121                 -o $(top_builddir)/regress/path/path_test \
122                 $(top_srcdir)/regress/path/path_test.c \
123                 $(top_srcdir)/lib/error.c \
124                 $(top_srcdir)/lib/sha1.c \
125                 $(top_srcdir)/lib/path.c \
126                 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
127                         $(top_builddir)/regress/path/path_test