Imported Upstream version 2.5.2p1
[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 GNULIB_M4I  = $(srcdir)/config/gnulib.m4i
8 ACINCLUDE_M4_DEPS = $(GNULIB_M4I) $(ACINCLUDE_M4I) $(LIBTOOL_M4I)
9
10 if WANT_CLIENT
11 CLIENT_SUBDIRS = client-src dumper-src
12 endif
13 if WANT_TAPE
14 TAPE_SUBDIRS = tape-src
15 endif
16 if WANT_SERVER
17 SERVER_SUBDIRS = server-src changer-src
18 endif
19 if WANT_RESTORE
20 RESTORE_SUBDIRS = restore-src
21 endif
22 if WANT_RECOVER
23 RECOVER_SUBDIRS = recover-src oldrecover-src
24 endif
25 if WANT_AMPLOT
26 PLOT_SUBDIRS = amplot
27 endif
28 # order is significant, don't change it arbitrarily
29 SUBDIRS = \
30         gnulib \
31         config \
32         common-src \
33         amandad-src \
34         $(TAPE_SUBDIRS) \
35         $(CLIENT_SUBDIRS) \
36         $(SERVER_SUBDIRS) \
37         $(RESTORE_SUBDIRS) \
38         $(RECOVER_SUBDIRS) \
39         $(PLOT_SUBDIRS) \
40         man docs example
41
42 pkgdata_DATA = \
43         ReleaseNotes                    \
44         COPYRIGHT
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
69 $(ACINCLUDE_M4): $(ACINCLUDE_M4_DEPS)
70         @-rm -f $@
71         @cat $(ACINCLUDE_M4_DEPS) > $@
72
73 libtool: $(LIBTOOL_DEPS)
74         $(SHELL) ./config.status --recheck
75
76 ## This is only meaningful for snapshots, but it won't hurt releases.
77 CONFIG_STATUS = config.status
78 $(CONFIG_STATUS): $(SNAPSHOT_STAMP)
79 SNAPSHOT:
80         : SNAPSHOT file was removed, will reconfigure...
81
82 lint:
83         (cd amandad-src; make lint)
84         (cd changer-src; make lint)
85         (cd client-src; make lint)
86         (cd common-src; make lint)
87         (cd oldrecover-src; make lint)
88         (cd recover-src; make lint)
89         (cd restore-src; make lint)
90         (cd server-src; make lint)
91         (cd tape-src; make lint)
92
93 ## Do not release the *.test.c sources.  They get built on the fly and
94 ## would contain a path from the distribution machine, which will just
95 ## confuse the target user.
96
97 dist-hook:
98         find $(distdir)/. -name '*.test.c' -exec rm {} \;