]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
build: Fix import-src on FreeBSD
authorRoy Marples <roy@marples.name>
Wed, 28 Aug 2019 21:58:43 +0000 (22:58 +0100)
committerRoy Marples <roy@marples.name>
Wed, 28 Aug 2019 21:58:43 +0000 (22:58 +0100)
src/Makefile

index eccca5226a45f6ea3f4e4a109d08c5ef3eb28912..ef16def535f986107051d819c46d90790bf154b3 100644 (file)
@@ -143,10 +143,10 @@ _import-src: ${SRCS}
        rm -f ${DESTDIR}/src/if-bsd.h ${DESTDIR}/src/if-linux.h ${DESTDIR}/src/if-sun.h
        if [ -n "${COMPAT_SRCS}" ]; then \
                ${INSTALL} -d ${DESTDIR}/compat; \
-               touch ../compat/rb.h ../compat/strtou.h; \
                cd ..; \
+               touch compat/rb.h compat/strtou.h; \
                cp ${COMPAT_SRCS} ${COMPAT_SRCS:.c=.h} ${DESTDIR}/compat; \
-               rm ../compat/rb.h ../compat/strtou.h; \
+               rm compat/rb.h compat/strtou.h; \
                rm -f ${DESTDIR}/compat/rb.h ${DESTDIR}/compat/strtou.h; \
        fi
        if ! grep HAVE_SYS_BITOPS_H ../config.h; then \