Makefile revision 302
# The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # See the License for the specific language governing permissions # and limitations under the License. # When distributing Covered Code, include this CDDL HEADER in each # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. # Since upstream only offers the latest snapshot for download, without # any way to retrieve a specific version, we just keep the currently # shipped versions of these two text files directly in the gate and # simply check in new versions to update them. # When it's time to update, you can use these rules to download with # that the header with version/date and license info is still being # correctly extracted and copied into the generated license files. # License files for packaging are generated during the build # Extract the header up to the first blank line $(GSED) -e
'/^$$/ q' $< > $@
# Generate license files for each document by substituting in templates: # __FILENAME__ replace with name of ids file (uses basename to strip # .license suffix, @F to strip the directories from file path) # __HEADER__ - read in contents of generated header file, then delete the $(GSED) -e
's/__FILENAME__/$(basename $(@F))/' \