makefile: clarify some things

This commit is contained in:
Ariadne Conill 2020-08-11 20:40:22 -06:00
parent 41e9751ac0
commit f96a74f232

View file

@ -66,18 +66,18 @@ CMD_OBJ = ${MULTICALL_OBJ} ${IFQUERY_OBJ} ${IFUPDOWN_OBJ}
CMDS = ifup ifdown ifquery CMDS = ifup ifdown ifquery
LIBS = ${LIBIFUPDOWN_LIB} TARGET_LIBS = ${LIBIFUPDOWN_LIB}
LIBS += ${LIBBSD_LIBS} LIBS += ${TARGET_LIBS} ${LIBBSD_LIBS}
all: libifupdown.a ${MULTICALL} ${CMDS} all: ${MULTICALL} ${CMDS}
${CMDS}: ${MULTICALL} ${CMDS}: ${MULTICALL}
ln -sf ifupdown $@ ln -sf ifupdown $@
${MULTICALL}: ${LIBS} ${CMD_OBJ} ${MULTICALL}: ${TARGET_LIBS} ${CMD_OBJ}
${CC} -o $@ ${CMD_OBJ} ${LIBS} ${CC} -o $@ ${CMD_OBJ} ${LIBS}
libifupdown.a: ${LIBIFUPDOWN_OBJ} ${LIBIFUPDOWN_LIB}: ${LIBIFUPDOWN_OBJ}
${AR} -rcs $@ ${LIBIFUPDOWN_OBJ} ${AR} -rcs $@ ${LIBIFUPDOWN_OBJ}
clean: clean:
@ -86,7 +86,7 @@ clean:
rm -f ${CMDS} ${MULTICALL} rm -f ${CMDS} ${MULTICALL}
rm -f ${MANPAGES} rm -f ${MANPAGES}
check: libifupdown.a ${CMDS} check: ${LIBIFUPDOWN_LIB} ${CMDS}
kyua test kyua test
install: all install: all