]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix import target.
authorRoy Marples <roy@marples.name>
Sat, 27 Feb 2010 15:33:18 +0000 (15:33 +0000)
committerRoy Marples <roy@marples.name>
Sat, 27 Feb 2010 15:33:18 +0000 (15:33 +0000)
Makefile

index 26fa3f3426ad9fb7ad321b08a200c706b8e57400..88cc953e2d479b0c4bdd3f9fdd773f065cb5d09e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -104,7 +104,7 @@ import:
        ${INSTALL} -d /tmp/${DISTPREFIX}
        cp ${SRCS} dhcpcd.conf *.in /tmp/${DISTPREFIX}
        cp $$(${CC} ${CPPFLAGS} -MM ${SRCS} | \
-               sed -e 's/^.*//g' -e 's/\\//g' | \
+               sed -e 's/^.*\.c //g' -e 's/.*\.c$$//g' -e 's/\\//g' | \
                tr ' ' '\n' | \
                sed -e '/^compat\//d' | \
                sort -u) /tmp/${DISTPREFIX}
@@ -112,7 +112,7 @@ import:
                ${INSTALL} -d /tmp/${DISTPREFIX}/compat; \
                cp ${COMPAT_SRCS} /tmp/${DISTPREFIX}/compat; \
                cp $$(${CC} ${CPPFLAGS} -MM ${COMPAT_SRCS} | \
-                       sed -e 's/^.*c //g' -e 's/\\//g' | \
+                       sed -e 's/^.*c //g' -e 's/.*\.c$$//g' -e 's/\\//g' | \
                        tr ' ' '\n' | \
                        sort -u) /tmp/${DISTPREFIX}/compat; \
        fi;