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