comparison Makefile @ 14:78319ed870dc

convert to new ThemWi configure and build system
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 21 May 2024 00:15:24 +0000
parents 3d6cfb615d90
children
comparison
equal deleted inserted replaced
13:c0bfd300b6e5 14:78319ed870dc
1 SUBDIR= include libnumdb libnumutil utils 1 SUBDIR= include libnumdb libnumutil utils
2 2 DESTDIR=
3 INSTALL_PREFIX= /opt/themwi
4 3
5 all: ${SUBDIR} 4 all: ${SUBDIR}
6 5
7 utils: libnumdb libnumutil 6 utils: libnumdb libnumutil
8 7
9 ${SUBDIR}: FRC 8 ${SUBDIR}: FRC config.defs
10 cd $@; ${MAKE} ${MFLAGS} 9 cd $@; ${MAKE} ${MFLAGS}
11 10
11 config.defs:
12 @echo 'You must run ./configure before make'
13 @false
14
12 install: FRC 15 install: FRC
13 mkdir -p ${INSTALL_PREFIX}
14 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ 16 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
15 INSTALL_PREFIX=${INSTALL_PREFIX} install); done 17 DESTDIR=${DESTDIR} install); done
16 18
17 clean: FRC 19 clean: FRC
18 rm -f a.out core errs 20 rm -f a.out core errs
19 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done 21 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
20 22