diff options
author | Jack Morgan <jack.morgan@intel.com> | 2016-10-25 11:45:14 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-10-25 11:45:14 +0000 |
commit | 688948508e373829cdcd7bb1e4ebb7f55e43cdac (patch) | |
tree | 8e071efa549c859579bb4753451880a4a36537da /tools/pharos-validator/Makefile | |
parent | af9b7ddeb637278a7705964ba98c8e6a2e7307f4 (diff) | |
parent | d863ee1a888954aa9863c33f95e636466b4025a8 (diff) |
Merge "Add pharos-validator tool"
Diffstat (limited to 'tools/pharos-validator/Makefile')
-rw-r--r-- | tools/pharos-validator/Makefile | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/tools/pharos-validator/Makefile b/tools/pharos-validator/Makefile new file mode 100644 index 00000000..55695020 --- /dev/null +++ b/tools/pharos-validator/Makefile @@ -0,0 +1,56 @@ +############################################################################## +# Copyright (c) 2015 Todd Gaunt and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +include config.mk + +# Variables passed down to subfolder make commands +export DESTDIR +export PREFIX + +SHELL=/bin/sh + +# Source paths +SRCDIR="src/" +PXE_INITRD=${SRCDIR}/pxe_initrd/ +VALIDATION_TOOL=${SRCDIR}/validation_tool/ + +# makefile names +PXE_MAKE=pxe_initrd.mk + + +all: validation_tool pxe_initrd + +########################################## +# The following forces rebuilding +########################################## +.PHONY: validation_tool ${VALIDATION_TOOL} +validation_tool: ${VALIDATION_TOOL} + +${VALIDATION_TOOL}: + pushd $@ && ./setup.py build && popd + +########################################## +# The following forces rebuilding +########################################## +.PHONY: pxe_initrd ${PXE_INITRD} +pxe_initrd: ${PXE_INITRD} + +${PXE_INITRD}: + ${MAKE} -C $@ -f ${PXE_MAKE} all +########################################## + +install: all + # Install the programs to the passed in PREFIX dir + ${MAKE} -C ${PXE_INITRD} -f ${PXE_MAKE} install + pushd ${VALIDATION_TOOL} && ./setup.py install --prefix=${DESTDIR}/${PREFIX} && popd + +.PHONY: clean +clean: + ${MAKE} -C ${PXE_INITRD} -f ${PXE_MAKE} clean + pushd ${VALIDATION_TOOL} && ./setup.py clean --all && popd |