From f96a74f232ade2b8fc5ec6b0a004da9f70074cee Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 11 Aug 2020 20:40:22 -0600 Subject: [PATCH] makefile: clarify some things --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 98d4328..6ce44b3 100644 --- a/Makefile +++ b/Makefile @@ -66,18 +66,18 @@ CMD_OBJ = ${MULTICALL_OBJ} ${IFQUERY_OBJ} ${IFUPDOWN_OBJ} CMDS = ifup ifdown ifquery -LIBS = ${LIBIFUPDOWN_LIB} -LIBS += ${LIBBSD_LIBS} +TARGET_LIBS = ${LIBIFUPDOWN_LIB} +LIBS += ${TARGET_LIBS} ${LIBBSD_LIBS} -all: libifupdown.a ${MULTICALL} ${CMDS} +all: ${MULTICALL} ${CMDS} ${CMDS}: ${MULTICALL} ln -sf ifupdown $@ -${MULTICALL}: ${LIBS} ${CMD_OBJ} +${MULTICALL}: ${TARGET_LIBS} ${CMD_OBJ} ${CC} -o $@ ${CMD_OBJ} ${LIBS} -libifupdown.a: ${LIBIFUPDOWN_OBJ} +${LIBIFUPDOWN_LIB}: ${LIBIFUPDOWN_OBJ} ${AR} -rcs $@ ${LIBIFUPDOWN_OBJ} clean: @@ -86,7 +86,7 @@ clean: rm -f ${CMDS} ${MULTICALL} rm -f ${MANPAGES} -check: libifupdown.a ${CMDS} +check: ${LIBIFUPDOWN_LIB} ${CMDS} kyua test install: all