-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.am
37 lines (28 loc) · 1.01 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
ACLOCAL_AMFLAGS = -I src/scripts/m4
SUBDIRS = src module
RPMMACROS = ${HOME}/.rpmmacros
RPMDIR = ${HOME}/.rpm
EXTRA_DIST = bootstrap
clean-generic:
@RM@ -f *~ .*~
preparerpm: dist
@ if @TEST@ -z "@RPMBUILD@" ; then \
@ECHO@ "RPMBUILD binary not found, can't build RPM package"; \
exit 1; \
fi
if @TEST@ ! -f ${RPMMACROS} ; then \
@ECHO@ "%_topdir ${RPMDIR}" > ${RPMMACROS}; \
mkdir -p ${RPMDIR}/SOURCES \
${RPMDIR}/SPECS \
${RPMDIR}/BUILD \
${RPMDIR}/RPMS/i386 \
${RPMDIR}/SRPMS ; \
fi
${MAKE} -C src/rpm @[email protected]
@LN_S@ -f `pwd`/src/rpm/@[email protected] ${RPMDIR}/SPECS/@[email protected]
rpm: preparerpm
@LN_S@ -f `pwd`/@PACKAGE@-@[email protected] ${RPMDIR}/SOURCES/@PACKAGE@-@[email protected]
cd ${RPMDIR}/SPECS && @RPMBUILD@ -ba @[email protected]
rpmcvs: preparerpm
@LN_S@ -f `pwd`/@PACKAGE@-@[email protected] ${RPMDIR}/SOURCES/@PACKAGE@-@VERSION@_cvs_`date +"%Y%m%d"`.tar.gz
cd ${RPMDIR}/SPECS && @RPMBUILD@ -ba @[email protected] --define 'cvs 1'