diff options
Diffstat (limited to 'scripts.new/resources/Makefiles/stage1.mk')
-rw-r--r-- | scripts.new/resources/Makefiles/stage1.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts.new/resources/Makefiles/stage1.mk b/scripts.new/resources/Makefiles/stage1.mk new file mode 100644 index 0000000..eeaa4d3 --- /dev/null +++ b/scripts.new/resources/Makefiles/stage1.mk @@ -0,0 +1,20 @@ + +.PHONY: stage1 clean-stage1 + +${STAGE2_MAKEFILE}: ${PRE_STAGE1_CACHE} + mkdir -p ${STAGE1_DIR} + mkdir -p $(shell dirname $@) + CUR_STAGE_DIR="${STAGE1_DIR}" CUR_STAGE=stage1\ + CACHE_TIMESTAMP="$(shell echo ${CACHE_TIMESTAMP})"\ + GENTOO_CACHE="$(shell echo ${PRE_STAGE1_CACHE})"\ + TARGET_MAKEFILE="$@"\ + TSH="${TSH}" CONFIG="${CONFIG}"\ + "${TSH_WRAPPER}" + touch "$@" + +stage1: ${STAGE2_MAKEFILE} + +clean-stage1: + if [[ -f ${STAGE2_MAKEFILE} ]]; then rm ${STAGE2_MAKEFILE}; fi + if [[ -d ${STAGE1_DIR} ]]; then rm ${STAGE1_DIR} -r; fi + if [[ -d ${POMDIR} ]]; then touch ${POMDIR}/pseudo; rm ${POMDIR}/* -r; fi |