Skip to content

Commit

Permalink
Makefile: only built C files
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLodato committed Oct 4, 2009
1 parent 47129f7 commit 414068b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions example/Makefile
Expand Up @@ -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)
Expand All @@ -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.