Makefile revision 3817
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# CDDL HEADER START
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# The contents of this file are subject to the terms of the
f70a10508f030b097a9b8afe907a06f9a1e2c4d4Tinderbox User# Common Development and Distribution License (the "License").
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# You may not use this file except in compliance with the License.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# See the License for the specific language governing permissions
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# and limitations under the License.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# When distributing Covered Code, include this CDDL HEADER in each
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# If applicable, add the following below this CDDL HEADER, with the
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# CDDL HEADER END
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCOMPONENT_PROJECT_URL= http://www.methods.co.nz/asciidoc/
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt sha256:ffb67f59dccaf6f15db72fcd04fdf21a2f9b703d31f94fcd0c49a424a9fcfbc4
831f59eb43b56642b00f82e07722836d2f9593abEvan HuntCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/$(COMPONENT_NAME)/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# AsciiDoc configuration and data files belong in /usr/share, not /etc based
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# on discussion from ARC pre-review.
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# pkgdepend doesn't like the first line of a Python script to be:
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# common targets
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# Tests require image/graphviz to be installed. Some tests also want to run
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# programs which are not automatically available on Solaris (latex, abc2ly
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# and lilypad), so these tests will output messages of the form:
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# latex2png.py: failed command: latex ...
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# music2png.py: failed command: abc2ly ...
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt# music2png.py: failed command: lilypond ...
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt then print "asciidocapi test passed"; \
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt else print "asciidocapi test failed"; \
831f59eb43b56642b00f82e07722836d2f9593abEvan Hunt python$(PYTHON_VERSION) ./testasciidoc.py update; \
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt# The additional asciidoc specific set of transforms to be applied to the
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt# test results to try to normalize them.
7d2b185f16b165e311e5b451324fe9ab9898dcedEvan Hunt '-e "s|/tmp......|/tmpxxxxxx|g" '