Imported Upstream version 2.5.1p1
[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 oldrecover-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         amandad-src \
32         $(TAPE_SUBDIRS) \
33         $(CLIENT_SUBDIRS) \
34         $(SERVER_SUBDIRS) \
35         $(RESTORE_SUBDIRS) \
36         $(RECOVER_SUBDIRS) \
37         $(PLOT_SUBDIRS) \
38         man docs example
39
40 pkgdata_DATA = \
41         ReleaseNotes                    \
42         COPYRIGHT                       \
43         COPYRIGHT-APACHE                \
44         COPYRIGHT-REGEX
45
46 EXTRA_DIST = $(SNAPSHOT_STAMP) \
47         $(pkgdata_DATA)                 \
48         autogen                         \
49         contrib/README                  \
50         contrib/dbbackup.README         \
51         contrib/dbbackup.ksh            \
52         contrib/dbbackup.sql            \
53         contrib/dbbackup.tcl            \
54         contrib/mkamandisk              \
55         contrib/set_prod_link.pl        \
56         contrib/gsc/README              \
57         contrib/gsc/cfggsc.c            \
58         contrib/gsc/defgsc.c            \
59         contrib/gsc/gsc.add             \
60         contrib/gsc/gscdd.c             \
61         contrib/gsc/gscdds.h            \
62         contrib/gsc/makefile            \
63         contrib/gsc/tstinq.c            \
64         contrib/gsc/ucfggsc.c           \
65         patches/regex-3.6alpha.patch    \
66         patches/samba-largefs.patch     \
67         patches/tar-1.12.patch          \
68         regex-src/COPYRIGHT             \
69         regex-src/Makefile              \
70         regex-src/README                \
71         regex-src/WHATSNEW              \
72         regex-src/cclass.h              \
73         regex-src/cname.h               \
74         regex-src/debug.c               \
75         regex-src/engine.c              \
76         regex-src/main.c                \
77         regex-src/mkh                   \
78         regex-src/regcomp.c             \
79         regex-src/regerror.c            \
80         regex-src/regex.3               \
81         regex-src/regex.7               \
82         regex-src/regex2.h              \
83         regex-src/regexec.c             \
84         regex-src/regfree.c             \
85         regex-src/split.c               \
86         regex-src/tests                 \
87         regex-src/utils.h               \
88         regex-src/fake/limits.h         \
89         regex-src/fake/memmove.c        \
90         regex-src/fake/stdlib.h
91
92 $(ACINCLUDE_M4): $(ACINCLUDE_M4_DEPS)
93         @-rm -f $@
94         @cat $(ACINCLUDE_M4_DEPS) > $@
95
96 libtool: $(LIBTOOL_DEPS)
97         $(SHELL) ./config.status --recheck
98
99 ## This is only meaningful for snapshots, but it won't hurt releases.
100 CONFIG_STATUS = config.status
101 $(CONFIG_STATUS): $(SNAPSHOT_STAMP)
102 SNAPSHOT:
103         : SNAPSHOT file was removed, will reconfigure...
104
105 lint:
106         (cd amandad-src; make lint)
107         (cd changer-src; make lint)
108         (cd client-src; make lint)
109         (cd common-src; make lint)
110         (cd oldrecover-src; make lint)
111         (cd recover-src; make lint)
112         (cd regex-src; make lint)
113         (cd restore-src; make lint)
114         (cd server-src; make lint)
115         (cd tape-src; make lint)
116
117 ## Do not release the *.test.c sources.  They get built on the fly and
118 ## would contain a path from the distribution machine, which will just
119 ## confuse the target user.
120
121 dist-hook:
122         find $(distdir)/. -name '*.test.c' -exec rm {} \;