From: kupcevic@sourceware.org <kupcevic@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga Makefile
Date: 17 Nov 2006 20:41:18 -0000 [thread overview]
Message-ID: <20061117204118.30760.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: kupcevic at sourceware.org 2006-11-17 20:41:18
Modified files:
. : Makefile
Log message:
simplify (s)rpms build process
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.11&r2=1.11.2.1
--- conga/Makefile 2006/08/15 21:33:54 1.11
+++ conga/Makefile 2006/11/17 20:41:17 1.11.2.1
@@ -73,9 +73,9 @@
rebuild: clean all
-srpms: srpm_conga srpm_clustermon
+srpms: conga_srpm clustermon_srpm
-srpm_conga: clean
+conga_srpm: clean
rm -rf ${TMP_DIR}/${CONGA_DIRNAME}
cp -r . ${TMP_DIR}/${CONGA_DIRNAME}
rm -rf `find ${TMP_DIR}/${CONGA_DIRNAME} -name CVS`
@@ -84,20 +84,41 @@
rm -f ${TMP_DIR}/${CONGA_DIRNAME}/*.rpm
tar -zcf ${CONGA_DIRNAME}.tar.gz ${TMP_DIR}/${CONGA_DIRNAME}
rm -rf ${TMP_DIR}/${CONGA_DIRNAME}
- rpmbuild --define "_sourcedir ." --define "_srcrpmdir ." --nodeps -bs conga.spec
+ if [ -n "${DISTRO}" ] ; then \
+ rpmbuild --define "dist .${DISTRO}" --define "_sourcedir ." --define "_srcrpmdir ." --nodeps -bs conga.spec ; \
+ else \
+ rpmbuild --define "_sourcedir ." --define "_srcrpmdir ." --nodeps -bs conga.spec ; \
+ fi
-srpm_clustermon: clean
+clustermon_srpm: clean
rm -rf ${TMP_DIR}/${CLUSTERMON_DIRNAME}
cp -r . ${TMP_DIR}/${CLUSTERMON_DIRNAME}
rm -rf `find ${TMP_DIR}/${CLUSTERMON_DIRNAME} -name CVS`
rm -f ${TMP_DIR}/${CLUSTERMON_DIRNAME}/conga.spec*
rm -f ${TMP_DIR}/${CLUSTERMON_DIRNAME}/*gz
rm -f ${TMP_DIR}/${CLUSTERMON_DIRNAME}/*.rpm
- ./luci/utils/remove_files ${TMP_DIR}/${CLUSTERMON_DIRNAME} ricci/ricci ricci/modules/log ricci/modules/service ricci/modules/rpm ricci/modules/storage luci/site luci/storage luci/cluster luci/homebase luci/plone-custom
+ ./luci/utils/remove_files ${TMP_DIR}/${CLUSTERMON_DIRNAME} ricci/ricci ricci/modules/log ricci/modules/service ricci/modules/rpm ricci/modules/storage luci/site luci/storage luci/cluster luci/homebase luci/plone-custom luci/docs luci/logs
tar -zcf ${CLUSTERMON_DIRNAME}.tar.gz ${TMP_DIR}/${CLUSTERMON_DIRNAME}
rm -rf ${TMP_DIR}/${CLUSTERMON_DIRNAME}
- rpmbuild --define "_sourcedir ." --define "_srcrpmdir ." --nodeps -bs clustermon.spec
+ if [ -n "${DISTRO}" ] ; then \
+ rpmbuild --define "dist .${DISTRO}" --define "_sourcedir ." --define "_srcrpmdir ." --nodeps -bs clustermon.spec ; \
+ else \
+ rpmbuild --define "_sourcedir ." --define "_srcrpmdir ." --nodeps -bs clustermon.spec ; \
+ fi
+
+rpms: conga_rpm clustermon_rpm
+
+conga_rpm: conga_srpm
+ if [ -n "${DISTRO}" ] ; then \
+ rpmbuild --define "dist .${DISTRO}" --rebuild ${CONGA_DIRNAME}-${RELEASE}.${DISTRO}.src.rpm ; \
+ else \
+ rpmbuild --rebuild ${CONGA_DIRNAME}-${RELEASE}.src.rpm ; \
+ fi
+
+clustermon_rpm: clustermon_srpm
+ if [ -n "${DISTRO}" ] ; then \
+ rpmbuild --define "dist .${DISTRO}" --rebuild ${CLUSTERMON_DIRNAME}-${RELEASE}.${DISTRO}.src.rpm ; \
+ else \
+ rpmbuild --rebuild ${CLUSTERMON_DIRNAME}-${RELEASE}.src.rpm ; \
+ fi
-rpms: srpms
- rpmbuild --rebuild ${CONGA_DIRNAME}-${RELEASE}.src.rpm
- rpmbuild --rebuild ${CLUSTERMON_DIRNAME}-${RELEASE}.src.rpm
next reply other threads:[~2006-11-17 20:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-17 20:41 kupcevic [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-03-27 17:24 [Cluster-devel] conga Makefile rmccabe
2007-03-06 11:52 kupcevic
2006-11-17 20:24 kupcevic
2006-08-15 21:33 kupcevic
2006-08-15 3:59 kupcevic
2006-08-09 21:35 kupcevic
2006-07-25 22:01 kupcevic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061117204118.30760.qmail@sourceware.org \
--to=kupcevic@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.