Makefile revision 7037
6c3e745a94ef6b25a4ef9f018d350a7535aa45afTed Gould# CDDL HEADER START
6c3e745a94ef6b25a4ef9f018d350a7535aa45afTed Gould# The contents of this file are subject to the terms of the
6c3e745a94ef6b25a4ef9f018d350a7535aa45afTed Gould# Common Development and Distribution License (the "License").
3cfad782faf34c654ec837780ed7b3fe95e82c2eJohan B. C. Engelen# You may not use this file except in compliance with the License.
3cfad782faf34c654ec837780ed7b3fe95e82c2eJohan B. C. Engelen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruz# See the License for the specific language governing permissions
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruz# and limitations under the License.
6c3e745a94ef6b25a4ef9f018d350a7535aa45afTed Gould# When distributing Covered Code, include this CDDL HEADER in each
6c3e745a94ef6b25a4ef9f018d350a7535aa45afTed Gould# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6c3e745a94ef6b25a4ef9f018d350a7535aa45afTed Gould# If applicable, add the following below this CDDL HEADER, with the
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud# fields enclosed by brackets "[]" replaced with your own identifying
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruz# information: Portions Copyright [yyyy] [name of copyright owner]
74ed5bd66f5d8a1465b69bd0450f2af030b638f0joncruz# CDDL HEADER END
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraud# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraudCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraud sha256:7959b4a74abdc27b312fed1c21e6caf9309ce0b29ea86b591fd2e99ecdf27f73
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraudCOMPONENT_PROJECT_URL= https://github.com/eliben/pycparser
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraudCOMPONENT_TEST_ARGS = --resultlog $(@D)/testresults
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud$(SOURCE_DIR)/pycparser/ply/lex.py: $(SOURCE_DIR)/.prep
29b1527f9bdcb4ac48c0e7e4730c366abb7a5bcbjfbarraud$(BUILD_DIR)/license.ply: $(SOURCE_DIR)/pycparser/ply/lex.py
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraud nawk '/^# Copyright / {p=1} /^# ---/ {p=0} p == 1 {print substr($$0, 3)}' $< > $@
b2062372cbc89afa229ff8bd9a68d5d07b34d3fdjfbarraud# common targets
76addc201c409e81eaaa73fe27cc0f79c4db097cKrzysztof Kosińskiinstall: $(INSTALL_NO_ARCH) $(BUILD_DIR)/license.ply