From: Mark Lodato Date: Sun, 4 Oct 2009 23:31:26 +0000 (-0400) Subject: freeze: Makefile: only clean specific C files X-Git-Tag: 0.12.alpha0~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ea57a1ea73a160724f5a6685cd0a4e60beff50ee;p=cython.git freeze: Makefile: only clean specific C files --- diff --git a/Demos/freeze/Makefile b/Demos/freeze/Makefile index be24116e..9f484e45 100644 --- a/Demos/freeze/Makefile +++ b/Demos/freeze/Makefile @@ -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)