|  | # | 
|  | #    Copyright (c) 2010-2011 Nest, Inc. | 
|  | #    All rights reserved. | 
|  | # | 
|  | #    This document is the property of Nest. It is considered | 
|  | #    confidential and proprietary information. | 
|  | # | 
|  | #    This document may not be reproduced or transmitted in any form, | 
|  | #    in whole or in part, without the express written permission of | 
|  | #    Nest. | 
|  | # | 
|  | #    Description: | 
|  | #    This Makefile is used to build eigen, a template based math library | 
|  | # | 
|  |  | 
|  | BuildConfigSpecialized	:= No | 
|  | BuildProductSpecialized	:= No | 
|  |  | 
|  | include pre.mak | 
|  |  | 
|  | PackageName		:= eigen | 
|  |  | 
|  | PackageKey          := 5097c01bcdc4 | 
|  | PackageExtension	:= tar.gz | 
|  | PackageSeparator	:= - | 
|  |  | 
|  | PackageArchive		:= $(PackageVersion).$(PackageExtension) | 
|  | PackageSourceDir	:= $(PackageName)$(PackageSeparator)$(PackageName)$(PackageSeparator)$(PackageKey) | 
|  |  | 
|  | CleanPaths		+= $(PackageLicenseFile) | 
|  |  | 
|  | all: $(PackageDefaultGoal) | 
|  |  | 
|  | # Generate the package license contents. | 
|  |  | 
|  | $(PackageSourceDir)/COPYING.MPL2: source | 
|  |  | 
|  | $(PackageLicenseFile): $(PackageSourceDir)/COPYING.MPL2 | 
|  | $(copy-result) | 
|  |  | 
|  | # Extract the source from the archive and apply patches, if any. | 
|  |  | 
|  | $(PackageSourceDir): $(PackageArchive) $(PackagePatchPaths) | 
|  | $(expand-and-patch-package) | 
|  |  | 
|  | # Prepare the sources. | 
|  |  | 
|  | .PHONY: source | 
|  | source: | ${PackageSourceDir} | 
|  |  | 
|  | # Patch the sources, if necessary. | 
|  |  | 
|  | .PHONY: patch | 
|  | patch: source | 
|  |  | 
|  | # Configure the source for building. | 
|  |  | 
|  | .PHONY: configure | 
|  | configure: patch | 
|  |  | 
|  | .PHONY: build | 
|  | build: configure | $(BuildDirectory) | 
|  |  | 
|  |  | 
|  | # Stage the build to a temporary installation area. | 
|  | # | 
|  | # We have to unset MAKEFLAGS since they confuse the package build otherwise. | 
|  | .PHONY filestocopy: | 
|  | cp -r ${call Slashify,${CURDIR}}${call Slashify,${PackageSourceDir}} ${ResultDirectory} | 
|  |  | 
|  |  | 
|  | .PHONY: stage | 
|  | stage: build filestocopy | $(ResultDirectory) | 
|  |  | 
|  | clean: | 
|  | $(Verbose)$(RM) $(RMFLAGS) -r $(PackageSourceDir) | 
|  | $(Verbose)$(RM) $(RMFLAGS) -r $(BuildDirectory) | 
|  | $(Verbose)$(RM) $(RMFLAGS) -r $(ResultDirectory) | 
|  |  | 
|  | include post.mak |