Makefile revision 104
230N/A#
230N/A# CDDL HEADER START
230N/A#
230N/A# The contents of this file are subject to the terms of the
230N/A# Common Development and Distribution License (the "License").
230N/A# You may not use this file except in compliance with the License.
230N/A#
230N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
230N/A# or http://www.opensolaris.org/os/licensing.
230N/A# See the License for the specific language governing permissions
230N/A# and limitations under the License.
230N/A#
230N/A# When distributing Covered Code, include this CDDL HEADER in each
230N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
230N/A# If applicable, add the following below this CDDL HEADER, with the
230N/A# fields enclosed by brackets "[]" replaced with your own identifying
230N/A# information: Portions Copyright [yyyy] [name of copyright owner]
230N/A#
230N/A# CDDL HEADER END
230N/A#
230N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
758N/A#
230N/Ainclude ../../make-rules/shared-macros.mk
230N/A
230N/ACOMPONENT_NAME= coreutils
230N/ACOMPONENT_VERSION= 8.5
230N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
758N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
230N/ACOMPONENT_ARCHIVE_HASH= sha1:939144f16d05691753a87134436dd2bb8ea89851
230N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/coreutils/$(COMPONENT_ARCHIVE)
844N/A
844N/Ainclude ../../make-rules/prep.mk
230N/Ainclude ../../make-rules/configure.mk
618N/Ainclude ../../make-rules/ips.mk
230N/A
230N/ACONFIGURE_PREFIX = /usr/gnu
230N/ACONFIGURE_OPTIONS += --libdir=/usr/lib
230N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
230N/ACONFIGURE_OPTIONS += CPPFLAGS=-I/usr/include/gmp
230N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
230N/A
230N/Ainclude ../../make-rules/shared-targets.mk
230N/A
230N/A# common targets
230N/Abuild: $(BUILD_32)
230N/A
230N/ACMDS_NONCONFLICTING=\[ base64 dir dircolors md5sum nproc pinky \
230N/Aprintenv ptx readlink seq sha1sum sha224sum sha256sum sha384sum sha512sum \
230N/Ashred shuf stat stdbuf tac timeout truncate users vdir whoami
230N/A
230N/AMANS_NONCONFLICTING=base64.1 dir.1 dircolors.1 md5sum.1 nproc.1 pinky.1 \
230N/Aprintenv.1 ptx.1 readlink.1 seq.1 sha1sum.1 sha224sum.1 sha256sum.1 \
230N/Asha384sum.1 sha512sum.1 shred.1 shuf.1 stat.1 stdbuf.1 tac.1 \
230N/Atimeout.1 truncate.1 users.1 vdir.1 whoami.1
230N/A
230N/ANEEDMV=if [ -e $(1) ]; then $(RM) $(2); /usr/bin/mv $(1) $(2); fi
230N/ARMDIR=/usr/bin/rmdir
230N/A
230N/A#
230N/A# whoami is in both /usr/bin and /usr/gnu/bin; mistake?
230N/A#
230N/A
230N/Ainstall: $(PROTOUSRBINDIR) $(PROTOUSRSHAREMAN1DIR) $(INSTALL_32)
230N/A for command in $(CMDS_NONCONFLICTING); do \
230N/A $(call NEEDMV,$(PROTOGNUBIN)/$$command,\
230N/A $(PROTOUSRBINDIR)/$$command) \
230N/A done
230N/A for manpage in $(COMPONENT_SRC)/man/*.1; do \
230N/A sed -f oracleman-stability $$manpage > \
230N/A $(PROTO_DIR)/$(GNUSHAREMAN1)/`basename $$manpage`; \
230N/A done
230N/A for manpage in $(MANS_NONCONFLICTING); do \
230N/A $(call NEEDMV,$(PROTOGNUSHAREMAN1)/$$manpage,\
230N/A $(PROTOUSRSHAREMAN1DIR)/$$manpage); \
230N/A done
230N/A $(CP) $(PROTOUSRBINDIR)/whoami $(PROTOGNUBIN)/whoami
230N/A $(CP) $(PROTOUSRSHAREMAN1DIR)/whoami.1 $(PROTOGNUSHAREMAN1)/whoami.1
230N/A $(call NEEDMV,$(PROTOGNUBIN)/install,$(PROTOUSRBINDIR)/ginstall)
230N/A $(call NEEDMV,$(PROTOGNUSHAREMAN1)/install.1,\
230N/A $(PROTOUSRSHAREMAN1DIR)/ginstall.1)
230N/A $(call NEEDMV,$(PROTOUSRLIBDIR)/coreutils/libstdbuf.so,\
230N/A $(PROTOUSRLIBDIR)/libstdbuf.so)
230N/A -$(RMDIR) $(PROTOUSRLIBDIR)/coreutils
230N/A $(RM) $(PROTOGNUBIN)/chcon
230N/A $(RM) $(PROTOGNUBIN)/runcon
230N/A $(RM) $(PROTOGNUSHAREMAN1)/chcon.1
230N/A $(RM) $(PROTOGNUSHAREMAN1)/runcon.1
230N/A $(RM) $(PROTOUSRLIBDIR)/charset.alias
230N/A
230N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
230N/A
230N/Atest: build
230N/A @cd $(BUILD_DIR_32); $(MAKE) check
230N/A
230N/Ainclude ../../make-rules/depend.mk
230N/A