1 ##############################################################################
2 # Copyright (c) 2015 Todd Gaunt and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
12 # Variables passed down to subfolder make commands
20 PXE_INITRD=${SRCDIR}/pxe_initrd/
21 VALIDATION_TOOL=${SRCDIR}/validation_tool/
24 PXE_MAKE=pxe_initrd.mk
27 all: validation_tool pxe_initrd
29 ##########################################
30 # The following forces rebuilding
31 ##########################################
32 .PHONY: validation_tool ${VALIDATION_TOOL}
33 validation_tool: ${VALIDATION_TOOL}
36 pushd $@ && ./setup.py build && popd
38 ##########################################
39 # The following forces rebuilding
40 ##########################################
41 .PHONY: pxe_initrd ${PXE_INITRD}
42 pxe_initrd: ${PXE_INITRD}
45 ${MAKE} -C $@ -f ${PXE_MAKE} all
46 ##########################################
49 # Install the programs to the passed in PREFIX dir
50 ${MAKE} -C ${PXE_INITRD} -f ${PXE_MAKE} install
51 pushd ${VALIDATION_TOOL} && ./setup.py install --prefix=${DESTDIR}/${PREFIX} && popd
55 ${MAKE} -C ${PXE_INITRD} -f ${PXE_MAKE} clean
56 pushd ${VALIDATION_TOOL} && ./setup.py clean --all && popd