Makefile revision 169
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= elinks
0N/ACOMPONENT_VERSION= 0.11.7
0N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
0N/ACOMPONENT_ARCHIVE_HASH= sha1:d13edc1477d0ab32cafe7d3c1f3a23ae1c0a5c54
0N/ACOMPONENT_ARCHIVE_URL= http://elinks.or.cz/download/$(COMPONENT_ARCHIVE)
0N/A
0N/Ainclude ../../make-rules/prep.mk
0N/Ainclude ../../make-rules/configure.mk
0N/Ainclude ../../make-rules/ips.mk
0N/A
0N/ACONFIGURE_OPTIONS += --enable-bittorrent
0N/ACONFIGURE_OPTIONS += --enable-html-highlight
0N/ACONFIGURE_OPTIONS += --enable-256-colors
0N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
0N/A
0N/A# common targets
0N/Abuild: $(BUILD_32)
0N/A
0N/ADOCFILES= bittorrent.txt color-model.txt bookmarks.txt dev-intro.txt \
0N/A ecmascript.txt elinks.1.txt elinks.conf.5.txt elinkskeys.5.txt \
0N/A events.txt exmode.txt faq.txt feedback.txt hacking.txt \
0N/A installation.txt introduction.txt lua-scripting.txt mailcap.txt \
0N/A manual.txt marks.txt mime.txt remote.txt small.txt tabs.txt \
0N/A terminals.txt urlshortcuts.txt
0N/A
0N/APROTODOCDIR = $(PROTO_DIR)/usr/share/doc/elinks
0N/APROTODOCFILES=$(DOCFILES:%=$(PROTODOCDIR)/%)
0N/A
0N/A$(PROTODOCDIR): $(INSTALL_32)
0N/A $(MKDIR) $@
0N/A
0N/A$(PROTODOCFILES): $(PROTODOCDIR)
0N/A $(INSTALL) -m 444 $(COMPONENT_SRC)/doc/$(@F) $(@D)
0N/A
0N/Ainstall: $(INSTALL_32) $(PROTODOCDIR) $(PROTODOCFILES)
0N/A (sed -f oracleman-stability $(COMPONENT_SRC)/doc/man/man1/elinks.1.in > \
0N/A $(PROTO_DIR)/$(USRSHAREMAN1DIR)/elinks.1 ; \
0N/A sed -f oracleman-stability $(COMPONENT_SRC)/doc/man/man5/elinks.conf.5 > \
0N/A $(PROTO_DIR)/$(USRSHAREMAN5DIR)/elinks.conf.5 ; \
sed -f oracleman-stability $(COMPONENT_SRC)/doc/man/man5/elinkskeys.5 > \
$(PROTO_DIR)/$(USRSHAREMAN5DIR)/elinkskeys.5)
test: build
@cd $(BUILD_DIR_32); $(MAKE) check
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk