From ea57a1ea73a160724f5a6685cd0a4e60beff50ee Mon Sep 17 00:00:00 2001 From: Mark Lodato Date: Sun, 4 Oct 2009 19:31:26 -0400 Subject: [PATCH] freeze: Makefile: only clean specific C files --- Demos/freeze/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.26.2