Makefile revision 4766
e80203675151ef9d4f3f850cf02041042eb13096Timo Sirainen# CDDL HEADER START
e80203675151ef9d4f3f850cf02041042eb13096Timo Sirainen# The contents of this file are subject to the terms of the
e80203675151ef9d4f3f850cf02041042eb13096Timo Sirainen# Common Development and Distribution License (the "License").
e80203675151ef9d4f3f850cf02041042eb13096Timo Sirainen# You may not use this file except in compliance with the License.
b44650b0f48a4b5f0dc240ed836833a00b643b9fTimo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e80203675151ef9d4f3f850cf02041042eb13096Timo Sirainen# See the License for the specific language governing permissions
e80203675151ef9d4f3f850cf02041042eb13096Timo Sirainen# and limitations under the License.
e80203675151ef9d4f3f850cf02041042eb13096Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
c5383a0ed56a188a7d5efaaa4c6f8243af432d65Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e80203675151ef9d4f3f850cf02041042eb13096Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
fbee9bffb56d882b98146dd0de76a5bcccc2bdc3Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
e80203675151ef9d4f3f850cf02041042eb13096Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
e80203675151ef9d4f3f850cf02041042eb13096Timo Sirainen# CDDL HEADER END
6420154390295de70cfd90be8766f2b10f07c1a8Timo Sirainen# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
8a8c23ec3de98ef55fd681514587a8c9e082777aTimo SirainenCOMPONENT_PROJECT_URL= http://www.methods.co.nz/asciidoc/
401b0787fff2dc986a5321ddb32acb1947ff66b0Timo SirainenCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
c6f894e1522f7b0b6068c228900914073c145175Timo Sirainen sha256:ffb67f59dccaf6f15db72fcd04fdf21a2f9b703d31f94fcd0c49a424a9fcfbc4
4ac5448461b63de9637de839fbc611a3d503287cTimo SirainenCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/$(COMPONENT_NAME)/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
fda2c460c58f50bf035680187be606542a8c1dacTimo Sirainen# AsciiDoc configuration and data files belong in /usr/share, not /etc based
657afb33796f8216c568ad813627da89970760beTimo Sirainen# on discussion from ARC pre-review.
4ac5448461b63de9637de839fbc611a3d503287cTimo Sirainen# pkgdepend doesn't like the first line of a Python script to be:
4ac5448461b63de9637de839fbc611a3d503287cTimo Sirainen# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
9398c0935613ba038cf2275ff66c43b25092cfd0Timo Sirainen $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
9398c0935613ba038cf2275ff66c43b25092cfd0Timo Sirainen $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
401b0787fff2dc986a5321ddb32acb1947ff66b0Timo Sirainen# common targets
401b0787fff2dc986a5321ddb32acb1947ff66b0Timo Sirainen# Tests require image/graphviz to be installed. Some tests also want to run
401b0787fff2dc986a5321ddb32acb1947ff66b0Timo Sirainen# programs which are not automatically available on Solaris (latex, abc2ly
401b0787fff2dc986a5321ddb32acb1947ff66b0Timo Sirainen# and lilypad), so these tests will output messages of the form:
401b0787fff2dc986a5321ddb32acb1947ff66b0Timo Sirainen# latex2png.py: failed command: latex ...
401b0787fff2dc986a5321ddb32acb1947ff66b0Timo Sirainen# music2png.py: failed command: abc2ly ...
401b0787fff2dc986a5321ddb32acb1947ff66b0Timo Sirainen# music2png.py: failed command: lilypond ...
9ed2951bd0bb1878a27437d7c00611b2baadd614Timo Sirainen then print "asciidocapi test passed"; \
9ed2951bd0bb1878a27437d7c00611b2baadd614Timo Sirainen else print "asciidocapi test failed"; \
9ed2951bd0bb1878a27437d7c00611b2baadd614Timo Sirainen python$(PYTHON_VERSION) ./testasciidoc.py update; \
9ed2951bd0bb1878a27437d7c00611b2baadd614Timo Sirainen '-e "/passed/p" ' \
9ed2951bd0bb1878a27437d7c00611b2baadd614Timo Sirainen '-e "/^[1-9]: /p" ' \
e80203675151ef9d4f3f850cf02041042eb13096Timo Sirainen '-e "/^[1-9][0-9]: /p" ' \
e80203675151ef9d4f3f850cf02041042eb13096Timo Sirainen '-e "/^SOURCE/p" ' \
e80203675151ef9d4f3f850cf02041042eb13096Timo Sirainen '-e "/^PASSED/p" ' \
615c4aba4cc0b17eefba3263b85972adaba04586Timo Sirainen '-e "/^FAILED/p" ' \
e80203675151ef9d4f3f850cf02041042eb13096Timo Sirainen '-e "/^TOTAL/p" '
401b0787fff2dc986a5321ddb32acb1947ff66b0Timo Sirainen then print "asciidocapi test passed"; \
657afb33796f8216c568ad813627da89970760beTimo Sirainen else print "asciidocapi test failed"; \