Makefile revision 151
132N/A#
132N/A# CDDL HEADER START
132N/A#
132N/A# The contents of this file are subject to the terms of the
132N/A# Common Development and Distribution License (the "License").
132N/A# You may not use this file except in compliance with the License.
132N/A#
132N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
132N/A# or http://www.opensolaris.org/os/licensing.
132N/A# See the License for the specific language governing permissions
132N/A# and limitations under the License.
132N/A#
132N/A# When distributing Covered Code, include this CDDL HEADER in each
132N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
132N/A# If applicable, add the following below this CDDL HEADER, with the
132N/A# fields enclosed by brackets "[]" replaced with your own identifying
132N/A# information: Portions Copyright [yyyy] [name of copyright owner]
132N/A#
132N/A# CDDL HEADER END
132N/A
132N/A#
132N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
132N/A#
132N/A
132N/Ainclude ../../make-rules/shared-macros.mk
132N/A
132N/ACOMPONENT_NAME= zip
132N/ACOMPONENT_VERSION= 3.0
132N/ACOMPONENT_SRC= $(COMPONENT_NAME)30
132N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
132N/ACOMPONENT_ARCHIVE_HASH= sha1:c9f4099ecf2772b53c2dd4a8e508064ce015d182
132N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.info-zip.org/pub/infozip/src/$(COMPONENT_ARCHIVE)
132N/A
132N/Ainclude ../../make-rules/prep.mk
132N/Ainclude ../../make-rules/justmake.mk
132N/Ainclude ../../make-rules/ips.mk
132N/A
132N/A# remove the unwanted file.
132N/ACOMPONENT_PREP_ACTION = rm -f $(SOURCE_DIR)/match.S
132N/A
132N/A# The Makefile we want is under unix/Makefile
151N/ACOMPONENT_BUILD_ARGS += -f unix/Makefile
151N/ACOMPONENT_BUILD_TARGETS += generic
151N/ACOMPONENT_INSTALL_ARGS += -f unix/Makefile
132N/A
132N/A# This doesn't respect DESTDIR, so overload BINDIR and MANDIR when we install.
151N/ACOMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR)
151N/ACOMPONENT_INSTALL_ARGS += MANDIR=$(PROTOUSRSHAREMAN1DIR)
132N/A
132N/A# fix the man pages
132N/AINST_MAN1PGS = zip zipcloak zipnote zipsplit
132N/AINST_MANSCRIPT = oracleman-stability
132N/APROTOMAN1 = $(INST_MAN1PGS:%=$(PROTOUSRSHAREMAN1DIR)/%.1)
132N/A
132N/A# Manpage files are already created by INSTALL_32 target
132N/A# so currently only the contents of files could be changed.
132N/A$(PROTOMAN1): $(INST_MAN1PGS:%=$(SOURCE_DIR)/man/%.1)
132N/A sed -f $(INST_MANSCRIPT) < $(SOURCE_DIR)/man/$(@F) > $@
132N/A
132N/A# It should be done without checking time-stamps of targets.
132N/A.PHONY: $(PROTOMAN1)
132N/A
132N/A# But do no do it before the INSTALL_32 is really finished.
132N/A$(INST_MAN1PGS:%=$(SOURCE_DIR)/man/%.1): $(INSTALL_32)
132N/A
132N/A# common targets
132N/A
132N/Abuild: $(BUILD_32)
132N/A
132N/Ainstall: $(INSTALL_32) $(PROTOMAN1)
132N/A
132N/Atest:
132N/A @echo "no tests available"
132N/A
132N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
132N/A
132N/Ainclude ../../make-rules/depend.mk
132N/A
132N/A