Simplified naming and compilation.
[flatland.git] / Makefile
index 1bdce0a..166d6ff 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,11 +30,14 @@ CXXFLAGS += -I/usr/include/cairo -DCAIRO_SUPPORT
 
 LDFLAGS += -lcairo
 
-all: flatland_generator.so TAGS
+all: flatland TAGS
 
 TAGS: *.cc *.h
        etags *.cc *.h
 
+flatland: flatland_generator.so
+       ./build.py
+
 flatland_generator.so: \
        sequence_generator.o misc.o \
        polygon.o universe.o \
@@ -45,6 +48,6 @@ Makefile.depend: *.h *.cc Makefile
        $(CC) $(CXXFLAGS) -M *.cc > Makefile.depend
 
 clean:
-       \rm -f flatland *.o *.so Makefile.depend
+       \rm -rf flatland *.o *.so Makefile.depend
 
 -include Makefile.depend