Commit ea57a1ea authored by Mark Lodato's avatar Mark Lodato

freeze: Makefile: only clean specific C files

parent 18eccdef
...@@ -14,6 +14,7 @@ TARGET = nCr ...@@ -14,6 +14,7 @@ TARGET = nCr
# List of Cython source files, with main module first. # List of Cython source files, with main module first.
CYTHON_SOURCE = combinatorics.pyx cmath.pyx CYTHON_SOURCE = combinatorics.pyx cmath.pyx
CYTHON_SECONDARY = $(CYTHON_SOURCE:.pyx=.c) $(TARGETS:=.c)
all : $(TARGET) all : $(TARGET)
...@@ -27,7 +28,7 @@ $(TARGET).c : ...@@ -27,7 +28,7 @@ $(TARGET).c :
$(CYTHON) $(CYTHONFLAGS) $^ $(CYTHON) $(CYTHONFLAGS) $^
clean: clean:
$(RM) *.o *.c $(TARGET) $(RM) *.o $(CYTHON_SECONDARY) $(TARGET)
.PHONY: clean .PHONY: clean
.SECONDARY: $(CYTHON_SOURCE:.pyx=.c) .SECONDARY: $(CYTHON_SECONDARY)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment