9ebd7062a56828e0e9ca92e4c5f146cd1840f91e
[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 dumper-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         $(TAPE_SUBDIRS) \
32         $(CLIENT_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         autogen                         \
47         contrib/README                  \
48         contrib/dbbackup.README         \
49         contrib/dbbackup.ksh            \
50         contrib/dbbackup.sql            \
51         contrib/dbbackup.tcl            \
52         contrib/mkamandisk              \
53         contrib/set_prod_link.pl        \
54         contrib/sst/Makefile            \
55         contrib/sst/README              \
56         contrib/sst/README.Amanda       \
57         contrib/sst/sst.c               \
58         contrib/sst/sst.conf            \
59         contrib/sst/sst_def.h           \
60         contrib/sst/sstest.c            \
61         contrib/gsc/README              \
62         contrib/gsc/cfggsc.c            \
63         contrib/gsc/defgsc.c            \
64         contrib/gsc/gsc.add             \
65         contrib/gsc/gscdd.c             \
66         contrib/gsc/gscdds.h            \
67         contrib/gsc/makefile            \
68         contrib/gsc/tstinq.c            \
69         contrib/gsc/ucfggsc.c           \
70         patches/regex-3.6alpha.patch    \
71         patches/samba-largefs.patch     \
72         patches/tar-1.12.patch          \
73         regex-src/COPYRIGHT             \
74         regex-src/Makefile              \
75         regex-src/README                \
76         regex-src/WHATSNEW              \
77         regex-src/cclass.h              \
78         regex-src/cname.h               \
79         regex-src/debug.c               \
80         regex-src/engine.c              \
81         regex-src/main.c                \
82         regex-src/mkh                   \
83         regex-src/regcomp.c             \
84         regex-src/regerror.c            \
85         regex-src/regex.3               \
86         regex-src/regex.7               \
87         regex-src/regex2.h              \
88         regex-src/regexec.c             \
89         regex-src/regfree.c             \
90         regex-src/split.c               \
91         regex-src/tests                 \
92         regex-src/utils.h               \
93         regex-src/fake/limits.h         \
94         regex-src/fake/memmove.c        \
95         regex-src/fake/stdlib.h
96
97 $(ACINCLUDE_M4): $(ACINCLUDE_M4_DEPS)
98         @-rm -f $@
99         @cat $(ACINCLUDE_M4_DEPS) > $@
100
101 libtool: $(LIBTOOL_DEPS)
102         $(SHELL) ./config.status --recheck
103
104 ## This is only meaningful for snapshots, but it won't hurt releases.
105 CONFIG_STATUS = config.status
106 $(CONFIG_STATUS): $(SNAPSHOT_STAMP)
107 SNAPSHOT:
108         : SNAPSHOT file was removed, will reconfigure...
109
110 ## Do not release the *.test.c sources.  They get built on the fly and
111 ## would contain a path from the distribution machine, which will just
112 ## confuse the target user.
113
114 dist-hook:
115         find $(distdir)/. -name '*.test.c' -exec rm {} \;