view Makefile @ 227:cac52723c02c

top Makefile: mkdir -p /opt/freecalypso/sim-data
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 10 Mar 2021 20:35:36 +0000
parents 123dc7370581
children
line wrap: on
line source

PROGDIR=misc offline simtool uicc
LIBDIR=	libcommon libutil
SUBDIR=	${PROGDIR} ${LIBDIR}

INSTALL_PREFIX=	/opt/freecalypso

all:	${SUBDIR}

misc:		libcommon
offline:	libutil
simtool:	libcommon libutil
uicc:		libcommon libutil

${SUBDIR}: FRC
	cd $@; ${MAKE} ${MFLAGS}

clean: FRC
	rm -f a.out core errs
	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done

install: FRC
	mkdir -p ${INSTALL_PREFIX}
	for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
		INSTALL_PREFIX=${INSTALL_PREFIX} install); done
	mkdir -p ${INSTALL_PREFIX}/sim-data
	mkdir -p ${INSTALL_PREFIX}/sim-scripts
	install -c -m 644 scripts/* ${INSTALL_PREFIX}/sim-scripts

FRC: