forked from zmanda/amanda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
154 lines (139 loc) · 4.29 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = 1.10 foreign
include $(top_srcdir)/config/automake/vars.am
include $(top_srcdir)/config/automake/installperms.am
ACLOCAL_AMFLAGS = --force -I config -I . -I config/gettext-macros -I config/gnulib -I config/amanda -I config/macro-archive -I /usr/share/aclocal
if WANT_CLIENT
CLIENT_SUBDIRS = client-src application-src
endif
if WANT_SERVER
SERVER_SUBDIRS = device-src server-src
endif
if WANT_RECOVER
RECOVER_SUBDIRS = recover-src oldrecover-src
endif
if WANT_AMPLOT
PLOT_SUBDIRS = amplot
endif
if WANT_NDMP
NDMP_SUBDIRS = ndmp-src
endif
if WANT_REST_SERVER
REST_SERVER_SUBDIRS = rest-server
endif
# order is significant, don't change it arbitrarily
SUBDIRS = . \
gnulib \
config \
common-src \
amar-src \
amandad-src \
xfer-src \
$(NDMP_SUBDIRS) \
$(TAPE_SUBDIRS) \
$(CLIENT_SUBDIRS) \
$(SERVER_SUBDIRS) \
$(RESTORE_SUBDIRS) \
$(RECOVER_SUBDIRS) \
$(PLOT_SUBDIRS) \
$(REST_SERVER_SUBDIRS) \
perl \
po \
man \
example \
packaging \
installcheck
pkgdata_DATA = \
ReleaseNotes \
COPYRIGHT \
NEWS \
ChangeLog
EXTRA_DIST += $(SNAPSHOT_STAMP) \
$(pkgdata_DATA) \
autogen \
contrib/README \
contrib/dbbackup.README \
contrib/dbbackup.ksh \
contrib/dbbackup.sql \
contrib/dbbackup.tcl \
contrib/mkamandisk \
contrib/set_prod_link.pl \
contrib/gsc/README \
contrib/gsc/cfggsc.c \
contrib/gsc/defgsc.c \
contrib/gsc/gsc.add \
contrib/gsc/gscdd.c \
contrib/gsc/gscdds.h \
contrib/gsc/makefile \
contrib/gsc/tstinq.c \
contrib/gsc/ucfggsc.c \
patches/regex-3.6alpha.patch \
patches/samba-largefs.patch \
patches/tar-1.12.patch \
UPGRADING \
DEVELOPING \
VERSION \
FULL_VERSION
FULL_VERSION: VERSION
$(srcdir)/config/set_full_version $(top_srcdir)
config.status: FULL_VERSION
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
# empty out the installperms manifest file when we start
install-exec-local: installperms-init
install-data-local: installperms-init
## This is only meaningful for snapshots, but it won't hurt releases.
CONFIG_STATUS = config.status
$(CONFIG_STATUS): $(SNAPSHOT_STAMP)
SNAPSHOT:
: SNAPSHOT file was removed, will reconfigure...
lint:
(cd amandad-src; make lint)
(cd client-src; make lint)
(cd common-src; make lint)
(cd oldrecover-src; make lint)
(cd recover-src; make lint)
(cd server-src; make lint)
(cd xfer-src; make lint)
## Do not release the *.test.c sources. They get built on the fly and
## would contain a path from the distribution machine, which will just
## confuse the target user.
dist-hook:
find $(distdir)/. -name '*.test.c' -exec rm {} \;
install-build-dependencies:
rm -rf ${DESTDIR}
${MKDIR_P} ${DESTDIR}
if WANT_SERVER
(cd common-src ; make install-build-dependencies)
(cd xfer-src ; make install-build-dependencies)
(cd ndmp-src ; make install-build-dependencies)
(cd device-src ; make install-build-dependencies)
endif
mkdir ${DESTDIR}/include
mkdir ${DESTDIR}/include/common-src
mkdir ${DESTDIR}/include/device-src
mkdir ${DESTDIR}/include/xfer-src
mkdir ${DESTDIR}/include/ndmp-src
mkdir ${DESTDIR}/include/amandad-src
mkdir ${DESTDIR}/include/server-src
mkdir ${DESTDIR}/include/client-src
mkdir ${DESTDIR}/include/recover-src
mkdir ${DESTDIR}/include/oldrecover-src
mkdir ${DESTDIR}/include/amar-src
mkdir ${DESTDIR}/include/contrib
mkdir ${DESTDIR}/include/contrib/gsc
mkdir ${DESTDIR}/include/config
mkdir ${DESTDIR}/include/config/snippet
mkdir ${DESTDIR}/include/perl
mkdir ${DESTDIR}/include/perl/amglue
mkdir ${DESTDIR}/include/gnulib
mkdir ${DESTDIR}/include/gnulib/arpa
mkdir ${DESTDIR}/include/gnulib/glthread
mkdir ${DESTDIR}/include/gnulib/sys
find . -name '*.h' -exec ${SHELL} -c 'for i; do cp $$i ${DESTDIR}/include/$$i; done' foo {} +
mkdir ${DESTDIR}/config
cp -fpR config/amanda config/gnulib config/macro-archive ${DESTDIR}/config
echo "${CONFIGURE_ARGS}" > ${DESTDIR}/configure_args
# ensure that configure gets the right arguments for distcheck; this keeps the
# user/group through to the distcheck, rather than defaulting back to 'amanda'.
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) --with-failure-code SINGLE_USERID=yes CLOBBER_MY_CONFIG=OK