FreeCalypso > hg > themwi-nanp
diff libnumutil/Makefile @ 11:3d6cfb615d90
add make install hierarchy
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 13 Dec 2023 05:16:12 +0000 |
parents | 159dd90eeafe |
children | 78319ed870dc |
line wrap: on
line diff
--- a/libnumutil/Makefile Wed Dec 13 03:56:16 2023 +0000 +++ b/libnumutil/Makefile Wed Dec 13 05:16:12 2023 +0000 @@ -1,7 +1,10 @@ +INSTALL_PREFIX= /opt/themwi + CC= gcc CFLAGS= -O2 -I../build-inc OBJS= digit_groups.o nanp_valid.o numstring.o LIB= libnumutil.a +INSTDIR=${INSTALL_PREFIX}/lib all: ${LIB} @@ -9,5 +12,9 @@ ar rcu $@ ${OBJS} ranlib $@ +install: + mkdir -p ${INSTDIR} + install -c -m 644 ${LIB} ${INSTDIR} + clean: rm -f *.[oa] errs