diff Makefile @ 21:b82ac486c1d7

top Makefile: add install-lib and install-utils
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 20 Nov 2022 06:44:40 +0000
parents 851ca64e38e9
children baadb1cb744d
line wrap: on
line diff
--- a/Makefile	Sun Nov 20 06:36:09 2022 +0000
+++ b/Makefile	Sun Nov 20 06:44:40 2022 +0000
@@ -1,6 +1,11 @@
 CC=	gcc
 CFLAGS=	-O2
-SUBDIR=	dev frtest libgsmfrp libtest pcap
+
+SUBDIR_LIBPROD=	libgsmfrp
+SUBDIR_UTILS=	frtest pcap
+SUBDIR_INT=	dev libtest
+
+SUBDIR=	${SUBDIR_LIBPROD} ${SUBDIR_UTILS} ${SUBDIR_INT}
 
 all:	${SUBDIR}
 
@@ -9,6 +14,12 @@
 ${SUBDIR}: FRC
 	cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}"
 
+install-lib:	FRC
+	for i in ${SUBDIR_LIBPROD}; do (cd $$i; ${MAKE} ${MFLAGS} install); done
+
+install-utils:	FRC
+	for i in ${SUBDIR_UTILS}; do (cd $$i; ${MAKE} ${MFLAGS} install); done
+
 clean: FRC
 	rm -f a.out core errs
 	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done