Use constants rather than string comparison for a saner API.
[dhcpcd-ui] / mk / lib.mk
index 707cfe692d396983438df9aef59804ef336fec41..c2db4f2aa524be4b699764250c452e23327875ef 100644 (file)
--- a/mk/lib.mk
+++ b/mk/lib.mk
@@ -7,7 +7,7 @@ SONAME?=                ${SHLIB}
 
 OBJS+=                 ${SRCS:.c=.o}
 SOBJS+=                        ${OBJS:.o=.So}
-LIBS?=                 ${LIBNAME} ${SHLIB}
+LIBS                 ${LIBNAME} ${SHLIB}
 
 CLEANFILES+=           ${OBJS} ${SOBJS} ${LIBS} ${SHLIB_LINK}
 
@@ -37,7 +37,7 @@ ${SHLIB}:     ${SOBJS}
 
 _libinstall:   all
        ${INSTALL} -d ${DESTDIR}${LIBDIR}
-       ${INSTALL} -m ${LIBMODE} ${LIB} ${DESTDIR}${LIBDIR}
+       ${INSTALL} -m ${LIBMODE} ${LIBNAME} ${DESTDIR}${LIBDIR}
        ${INSTALL} -d ${DESTDIR}${SHLIBDIR}
        ${INSTALL} -m ${LIBMODE} ${SHLIB} ${DESTDIR}${SHLIBDIR}
        ln -fs ${SHLIB} ${DESTDIR}${SHLIBDIR}/${SHLIB_LINK}
@@ -46,6 +46,8 @@ _libinstall:  all
 
 install: ${LIBINSTALL}
 
+proginstall: install
+
 clean:
        rm -f ${OBJS} ${SOBJS} ${LIBS} ${SHLIB_LINK} ${CLEANFILES}
 
@@ -54,5 +56,5 @@ extra_depend:
        ${SED} -e 's/^\([^\.]*\).o[ ]*:/\1.o \1.So:/' .depend > $${TMP}; \
        mv $${TMP} .depend
 
-include ${MK}/sys.mk
-include ${MK}/depend.mk
+include ${MKDIR}/sys.mk
+include ${MKDIR}/depend.mk