Merge branch 'upstream'
[debian/amanda] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 AUTOMAKE_OPTIONS = 1.4 foreign
3
4 ACLOCAL_AMFLAGS = --force -I . -I config -I config/gettext-macros -I config/gnulib -I config/amanda -I config/macro-archive
5
6 if WANT_CLIENT
7 CLIENT_SUBDIRS = client-src dumper-src
8 endif
9 if WANT_TAPE
10 TAPE_SUBDIRS = tape-src
11 endif
12 if WANT_SERVER
13 SERVER_SUBDIRS = device-src server-src changer-src
14 endif
15 if WANT_RESTORE
16 RESTORE_SUBDIRS = restore-src
17 endif
18 if WANT_RECOVER
19 RECOVER_SUBDIRS = recover-src oldrecover-src
20 endif
21 if WANT_AMPLOT
22 PLOT_SUBDIRS = amplot
23 endif
24 # order is significant, don't change it arbitrarily
25 SUBDIRS = \
26         gnulib \
27         config \
28         common-src \
29         amandad-src \
30         $(TAPE_SUBDIRS) \
31         $(CLIENT_SUBDIRS) \
32         $(SERVER_SUBDIRS) \
33         $(RESTORE_SUBDIRS) \
34         $(RECOVER_SUBDIRS) \
35         $(PLOT_SUBDIRS) \
36         perl \
37         po \
38         man \
39         example \
40         packaging \
41         installcheck
42
43 pkgdata_DATA = \
44         ReleaseNotes    \
45         COPYRIGHT       \
46         NEWS            \
47         ChangeLog
48
49 EXTRA_DIST = $(SNAPSHOT_STAMP) \
50         $(pkgdata_DATA)                 \
51         autogen                         \
52         contrib/README                  \
53         contrib/dbbackup.README         \
54         contrib/dbbackup.ksh            \
55         contrib/dbbackup.sql            \
56         contrib/dbbackup.tcl            \
57         contrib/mkamandisk              \
58         contrib/set_prod_link.pl        \
59         contrib/gsc/README              \
60         contrib/gsc/cfggsc.c            \
61         contrib/gsc/defgsc.c            \
62         contrib/gsc/gsc.add             \
63         contrib/gsc/gscdd.c             \
64         contrib/gsc/gscdds.h            \
65         contrib/gsc/makefile            \
66         contrib/gsc/tstinq.c            \
67         contrib/gsc/ucfggsc.c           \
68         patches/regex-3.6alpha.patch    \
69         patches/samba-largefs.patch     \
70         patches/tar-1.12.patch          \
71         UPGRADING                       \
72         DEVELOPING
73
74 libtool: $(LIBTOOL_DEPS)
75         $(SHELL) ./config.status --recheck
76
77 ## This is only meaningful for snapshots, but it won't hurt releases.
78 CONFIG_STATUS = config.status
79 $(CONFIG_STATUS): $(SNAPSHOT_STAMP)
80 SNAPSHOT:
81         : SNAPSHOT file was removed, will reconfigure...
82
83 lint:
84         (cd amandad-src; make lint)
85         (cd changer-src; make lint)
86         (cd client-src; make lint)
87         (cd common-src; make lint)
88         (cd oldrecover-src; make lint)
89         (cd recover-src; make lint)
90         (cd restore-src; make lint)
91         (cd server-src; make lint)
92         (cd tape-src; make lint)
93
94 ## Do not release the *.test.c sources.  They get built on the fly and
95 ## would contain a path from the distribution machine, which will just
96 ## confuse the target user.
97
98 dist-hook:
99         find $(distdir)/. -name '*.test.c' -exec rm {} \;
100
101 # ensure that configure gets the right arguments for distcheck; this keeps the
102 # user/group through to the distcheck, rather than defaulting back to 'amanda'.
103 DISTCHECK_CONFIGURE_FLAGS = --with-user=$(CLIENT_LOGIN) --with-group=$(SETUID_GROUP) --with-owner=$(BINARY_OWNER) --disable-installperms --without-force-uid --with-tmpdir=$(AMANDA_TMPDIR) SINGLE_USERID=yes