FreeCalypso > hg > themwi-nanp
diff utils/Makefile @ 11:3d6cfb615d90
add make install hierarchy
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 13 Dec 2023 05:16:12 +0000 |
parents | 0b4d54289ef3 |
children | 78319ed870dc |
line wrap: on
line diff
--- a/utils/Makefile Wed Dec 13 03:56:16 2023 +0000 +++ b/utils/Makefile Wed Dec 13 05:16:12 2023 +0000 @@ -1,8 +1,11 @@ +INSTALL_PREFIX= /opt/themwi + CC= gcc CFLAGS= -O2 -I../build-inc PROGS= themwi-check-own themwi-dump-numdb themwi-short-dial themwi-update-numdb LIBNUMDB=../libnumdb/libnumdb.a LIBUTIL=../libnumutil/libnumutil.a +INSTBIN=${INSTALL_PREFIX}/bin all: ${PROGS} @@ -18,5 +21,9 @@ themwi-update-numdb: themwi-update-numdb.o ${LIBUTIL} ${CC} -o $@ $@.o ${LIBUTIL} +install: + mkdir -p ${INSTBIN} + install -c -m 755 ${PROGS} ${INSTBIN} + clean: rm -f *.o ${PROGS} errs