freeze: Makefile: only clean specific C files
authorMark Lodato <lodatom@gmail.com>
Sun, 4 Oct 2009 23:31:26 +0000 (19:31 -0400)
committerMark Lodato <lodatom@gmail.com>
Sun, 4 Oct 2009 23:31:26 +0000 (19:31 -0400)
Demos/freeze/Makefile

index be24116e4b00391836efc88eb5a60d300b7f334c..9f484e459122f592e26be87ee771de189f8d154d 100644 (file)
@@ -14,6 +14,7 @@ TARGET = nCr
 
 # List of Cython source files, with main module first.
 CYTHON_SOURCE = combinatorics.pyx cmath.pyx
+CYTHON_SECONDARY = $(CYTHON_SOURCE:.pyx=.c) $(TARGETS:=.c)
 
 
 all : $(TARGET)
@@ -27,7 +28,7 @@ $(TARGET).c :
        $(CYTHON) $(CYTHONFLAGS) $^
 
 clean:
-       $(RM) *.o *.c $(TARGET)
+       $(RM) *.o $(CYTHON_SECONDARY) $(TARGET)
 
 .PHONY: clean
-.SECONDARY: $(CYTHON_SOURCE:.pyx=.c)
+.SECONDARY: $(CYTHON_SECONDARY)