]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Remove temp files when cannot work out linking foo
authorRoy Marples <roy@marples.name>
Thu, 11 Oct 2007 21:05:18 +0000 (21:05 +0000)
committerRoy Marples <roy@marples.name>
Thu, 11 Oct 2007 21:05:18 +0000 (21:05 +0000)
Makefile

index bce4e70c755adffdb3385d9ff8e796764983f6bc..9031ad2c426412644577575e99e926c40cd79f78 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 # such as the need to link to libresolv and/or librt so please forgive the
 # embedded code :)
 
-VERSION = 3.1.6
+VERSION = 3.1.7_pre1
 CFLAGS += -O2 -pipe
 
 INSTALL ?= install
@@ -24,6 +24,7 @@ _LIBRESOLV_SH = printf '\#include <netinet/in.h>\n\#include <resolv.h>\nint main
                echo "-lresolv"; \
        else \
                echo "Cannot work out how to get res_init to link" >&2; \
+               rm -f .res_init.c .res_init; \
                exit 1; \
        fi; \
        rm -f .res_init.c .res_init
@@ -38,6 +39,7 @@ _LIBRT_SH = printf '\#include <time.h>\nint main (void) { struct timespec ts; re
                echo "-lrt"; \
        else \
                echo "Cannot work out how to get clock_gettime to link" >&2; \
+               rm -f .clock_gettime.c .clock_gettime; \
                exit 1; \
        fi; \
        rm -f .clock_gettime.c .clock_gettime