BSD make doesn't like .PHONY .c files.
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 26 Dec 2014 14:58:28 +0000 (15:58 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 26 Dec 2014 14:58:28 +0000 (15:58 +0100)
It then thinks there should be a rule to make the .c file, which does
not exist of course. Luckily, we can tell it that version.o is .PHONY,
and this will still cause the .o file to be regenerated and linked into
the binaries everytime make is called.

src/Makefile.am

index 02d7ec2..6414cdf 100644 (file)
@@ -3,7 +3,7 @@
 sbin_PROGRAMS = tincd tinc sptps_test sptps_keypair
 
 ## Make sure version.c is always rebuilt
 sbin_PROGRAMS = tincd tinc sptps_test sptps_keypair
 
 ## Make sure version.c is always rebuilt
-.PHONY: version.c
+.PHONY: version.o
 
 if LINUX
 sbin_PROGRAMS += sptps_speed
 
 if LINUX
 sbin_PROGRAMS += sptps_speed