planetdump: Verify we can connect to DB before we do anything else
[planetdump.git] / Makefile
index bfd1018..031d08d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,12 +5,15 @@ MYSQL_LDFLAGS += $(shell mysql_config --libs)
 
 .PHONY: all clean
 
-all: planet UTF8Sanitizer
+all: planet05 planet06 UTF8Sanitizer
 
 clean:
-       rm -f UTF8Sanitizer planet
+       rm -f UTF8Sanitizer planet05 planet06
 
-planet: planet.c keyvals.c
+planet05: planet05.c keyvals.c
+       $(CC) $(MYSQL_CFLAGS) $(MYSQL_LDFLAGS) -o $@ $^
+
+planet06: planet06.c keyvals.c
        $(CC) $(MYSQL_CFLAGS) $(MYSQL_LDFLAGS) -o $@ $^
 
 UTF8Sanitizer: UTF8sanitizer.c