From: "Barry Naujok" <bnaujok@melbourne.sgi.com>
To: xfs@oss.sgi.com
Cc: xfs-dev@corp.sgi.com
Subject: [PATCH] Cleanup some build cruft in xfs-cmds GNUmakefile
Date: Mon, 19 Feb 2007 16:18:26 +1100 [thread overview]
Message-ID: <200702190516.QAA10507@larry.melbourne.sgi.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 148 bytes --]
Clean up some old SGI specific stuff in the root xfs-cmds GNUmakefile, and
be able to set final location for the RPM packages from the environment.
[-- Attachment #2: makefile_clean.patch --]
[-- Type: application/octet-stream, Size: 2353 bytes --]
--- a/GNUmakefile 2007-02-19 16:13:09.000000000 +1100
+++ b/GNUmakefile 2007-02-19 16:08:42.302255319 +1100
@@ -1,16 +1,16 @@
#
-# Copyright (c) 2002 Silicon Graphics, Inc. All Rights Reserved.
+# Copyright (c) 2002-2007 Silicon Graphics, Inc. All Rights Reserved.
#
-# Top-level makefile for all of xfs-cmds (with specific bits for LBS)
+# Top-level makefile for all of xfs-cmds
#
XFS_CMDS_DIR := $(shell pwd)
-# This is true for both LBS and 2.4.x-xfs builds... for now...
-TOP=..
-
ARCH := $(shell uname -m | sed -e s/i.86/i386/)
+RPM_OUT_DIR ?= $(XFS_CMDS_DIR)/RPMS/$(ARCH)
+SRPM_OUT_DIR ?= $(XFS_CMDS_DIR)/SRPMS
+
COMMANDS = attr acl xfsprogs dmapi xfsdump
# We'd like to be able to satisfy dependencies from within the
@@ -50,37 +50,22 @@
( cd $(XFS_CMDS_DIR)/$$d && ./Makepkgs ) || exit 1; \
done
for d in $(COMMANDS); do \
- ( cd $(XFS_CMDS_DIR) && /bin/cp $$d/build/rpm/*.src.rpm SRPMS ) \
+ ( cd $(XFS_CMDS_DIR) && /bin/cp $$d/build/rpm/*.src.rpm $(SRPM_OUT_DIR) ) \
done
for d in $(COMMANDS); do \
- ( cd $(XFS_CMDS_DIR) && /bin/cp $$d/build/rpm/*.$(ARCH).rpm RPMS/$(ARCH) ) \
+ ( cd $(XFS_CMDS_DIR) && /bin/cp $$d/build/rpm/*.$(ARCH).rpm $(RPM_OUT_DIR) ) \
done
- # If this is an LBS build ($(TOP)/sgi-install/SGI/RPMS exists)
- # then copy the RPMs over to sgi-install after they're built
- ([ -d $(TOP)/sgi-install/SGI/RPMS ] && \
- ( /bin/cp $(XFS_CMDS_DIR)/RPMS/$(ARCH)/*.rpm $(TOP)/sgi-install/SGI/RPMS )) || \
- echo
-
- ([ -d $(TOP)/sgi-install/SGI/SRPMS ] && \
- ( /bin/cp $(XFS_CMDS_DIR)/SRPMS/*.src.rpm $(TOP)/sgi-install/SGI/SRPMS )) || \
- echo
-
builddirs:
echo "cmd builddirs"
- ([ -d $(XFS_CMDS_DIR)/BUILD ] || mkdir $(XFS_CMDS_DIR)/BUILD)
- ([ -d $(XFS_CMDS_DIR)/SRPMS ] || mkdir $(XFS_CMDS_DIR)/SRPMS)
- ([ -d $(XFS_CMDS_DIR)/RPMS/$(ARCH) ] || mkdir -p $(XFS_CMDS_DIR)/RPMS/$(ARCH))
+ ([ -d $(SRPM_OUT_DIR) ] || mkdir -p $(SRPM_OUT_DIR))
+ ([ -d $(RPM_OUT_DIR) ] || mkdir -p $(RPM_OUT_DIR))
clean:
- rm -rf RPMS SRPMS BUILD SOURCES
+ rm -rf $(SRPM_OUT_DIR) $(RPM_OUT_DIR)
for d in $(COMMANDS); do \
( cd $(XFS_CMDS_DIR)/$$d && make -i clean ) \
done
realclean: clean
for d in $(COMMANDS); do ( cd $(XFS_CMDS_DIR)/$$d && make realclean ) done
-
-clean-lbs: realclean
-
-build-lbs: cmds-install
next reply other threads:[~2007-02-19 5:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-19 5:18 Barry Naujok [this message]
2007-02-19 10:32 ` [PATCH] Cleanup some build cruft in xfs-cmds GNUmakefile Christoph Hellwig
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=200702190516.QAA10507@larry.melbourne.sgi.com \
--to=bnaujok@melbourne.sgi.com \
--cc=xfs-dev@corp.sgi.com \
--cc=xfs@oss.sgi.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox