Skip to content
Browse files

Makefile: only built C files

  • Loading branch information...
1 parent 47129f7 commit 414068bd8c90d82b9e1e1430a7bab35553413947 @MarkLodato committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 example/Makefile
View
5 example/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)
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)

0 comments on commit 414068b

Please sign in to comment.
Something went wrong with that request. Please try again.