Imported Upstream version 2.4.4p3
[debian/amanda] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 AUTOMAKE_OPTIONS = 1.4 foreign
3
4 ACINCLUDE_M4 = $(srcdir)/acinclude.m4
5 ACINCLUDE_M4I = $(srcdir)/config/acinclude.m4i
6 LIBTOOL_M4I = $(srcdir)/config/libtool.m4i
7 ACINCLUDE_M4_DEPS = $(ACINCLUDE_M4I) $(LIBTOOL_M4I)
8
9 if WANT_CLIENT
10 CLIENT_SUBDIRS = client-src
11 endif
12 if WANT_TAPE
13 TAPE_SUBDIRS = tape-src
14 endif
15 if WANT_SERVER
16 SERVER_SUBDIRS = server-src changer-src
17 endif
18 if WANT_RESTORE
19 RESTORE_SUBDIRS = restore-src
20 endif
21 if WANT_RECOVER
22 RECOVER_SUBDIRS = recover-src
23 endif
24 if WANT_AMPLOT
25 PLOT_SUBDIRS = amplot
26 endif
27 # order is significant, don't change it arbitrarily
28 SUBDIRS = \
29         config \
30         common-src \
31         $(CLIENT_SUBDIRS) \
32         $(TAPE_SUBDIRS) \
33         $(SERVER_SUBDIRS) \
34         $(RESTORE_SUBDIRS) \
35         $(RECOVER_SUBDIRS) \
36         $(PLOT_SUBDIRS) \
37         man docs example
38
39 pkgdata_DATA = \
40         COPYRIGHT                       \
41         COPYRIGHT-APACHE                \
42         COPYRIGHT-REGEX
43
44 EXTRA_DIST = $(SNAPSHOT_STAMP) \
45         $(pkgdata_DATA)                 \
46         contrib/README                  \
47         contrib/dbbackup.README         \
48         contrib/dbbackup.ksh            \
49         contrib/dbbackup.sql            \
50         contrib/dbbackup.tcl            \
51         contrib/mkamandisk              \
52         contrib/set_prod_link.pl        \
53         contrib/sst/Makefile            \
54         contrib/sst/README              \
55         contrib/sst/README.Amanda       \
56         contrib/sst/sst.c               \
57         contrib/sst/sst.conf            \
58         contrib/sst/sst_def.h           \
59         contrib/sst/sstest.c            \
60         patches/regex-3.6alpha.patch    \
61         patches/samba-largefs.patch     \
62         patches/tar-1.12.patch          \
63         regex-src/COPYRIGHT             \
64         regex-src/Makefile              \
65         regex-src/README                \
66         regex-src/WHATSNEW              \
67         regex-src/cclass.h              \
68         regex-src/cname.h               \
69         regex-src/debug.c               \
70         regex-src/engine.c              \
71         regex-src/main.c                \
72         regex-src/mkh                   \
73         regex-src/regcomp.c             \
74         regex-src/regerror.c            \
75         regex-src/regex.3               \
76         regex-src/regex.7               \
77         regex-src/regex2.h              \
78         regex-src/regexec.c             \
79         regex-src/regfree.c             \
80         regex-src/split.c               \
81         regex-src/tests                 \
82         regex-src/utils.h               \
83         regex-src/fake/limits.h         \
84         regex-src/fake/memmove.c        \
85         regex-src/fake/stdlib.h
86
87 $(ACINCLUDE_M4): $(ACINCLUDE_M4_DEPS)
88         @-rm -f $@
89         @cat $(ACINCLUDE_M4_DEPS) > $@
90
91 libtool: $(LIBTOOL_DEPS)
92         $(SHELL) ./config.status --recheck
93
94 ## This is only meaningful for snapshots, but it won't hurt releases.
95 CONFIG_STATUS = config.status
96 $(CONFIG_STATUS): $(SNAPSHOT_STAMP)
97 SNAPSHOT:
98         : SNAPSHOT file was removed, will reconfigure...
99
100 ## Do not release the *.test.c sources.  They get built on the fly and
101 ## would contain a path from the distribution machine, which will just
102 ## confuse the target user.
103
104 dist-hook:
105         find $(distdir)/. -name '*.test.c' -exec rm {} \;