midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame subr/pre_subdirs.subr

Lucio Andrés Illanes Albornoz (arab, vxp) d1adc7
#
Lucio Andrés Illanes Albornoz (arab, vxp) 802215
# set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) d1adc7
#
Lucio Andrés Illanes Albornoz (arab, vxp) d1adc7
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
pre_subdirs() {
Lucio Andrés Illanes Albornoz (arab, vxp) 802215
	local __;
Lucio Andrés Illanes Albornoz (arab, vxp) d1adc7
	if [ ${ARG_CLEAN:-0} -eq 1 ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) d1adc7
		log_msg info "-c specified, cleaning prefix...";
Lucio Andrés Illanes Albornoz (arab, vxp) d1adc7
		for __ in ${CLEAR_PREFIX_DIRS}; do
Lucio Andrés Illanes Albornoz (arab, vxp) d1adc7
			if [ -e ${PREFIX}/${__} ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
				build_rm ${PREFIX}/${__};
Lucio Andrés Illanes Albornoz (arab, vxp) d1adc7
			fi;
Lucio Andrés Illanes Albornoz (arab, vxp) d1adc7
		done;
Lucio Andrés Illanes Albornoz (arab, vxp) d1adc7
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
	install_files ""					\
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		/=${DLCACHEDIR}					\
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		/=${WORKDIR}					\
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		/=${PREFIX}					\
Lucio Andrés Illanes Albornoz (arab, vxp) 691929
		/=${PREFIX}/${TARGET}/bin			\
Lucio Andrés Illanes Albornoz (arab, vxp) 691929
		/=${PREFIX}/${TARGET}/lib			\
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		/=${PREFIX}/x86_64-w64-mingw32			\
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		/=${PREFIX_CROSS}				\
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		/=${PREFIX_MINIPIX}/bin				\
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		/=${PREFIX_NATIVE}				\
Lucio Andrés Illanes Albornoz (arab, vxp) 9d3310
		/=${PREFIX_NATIVE}/${TARGET}/lib		\
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		@.=${PREFIX}/usr				\
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		@.=${PREFIX}/x86_64-w64-mingw32/mingw		\
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		/=${PREFIX}/x86_64-w64-mingw32/mingw/include	\
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		@.=${PREFIX_NATIVE}/usr				\
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		@bin=${PREFIX_MINIPIX}/lib			\
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		@bin=${PREFIX_MINIPIX}/libexec			\
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		@bin=${PREFIX_MINIPIX}/share			\
Lucio Andrés Illanes Albornoz (arab, vxp) bd97b6
		@share/man=${PREFIX}/man			\
Lucio Andrés Illanes Albornoz (arab, vxp) d1adc7
		@share/man=${PREFIX_NATIVE}/man;
Lucio Andrés Illanes Albornoz (arab, vxp) d1adc7
};
Lucio Andrés Illanes Albornoz (arab, vxp) d1adc7
Lucio Andrés Illanes Albornoz (arab, vxp) d1adc7
# vim:filetype=sh