Skip to content

Commit

Permalink
Makefiles improvement.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakm committed Apr 25, 2012
1 parent 7547f8e commit 0ef9633
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion Makefile
@@ -1,2 +1,15 @@
all: pcre test

pcre:
(cd src/_pcre;$(MAKE);cp _pcre.so ../pcre)
(cd src/_pcre;$(MAKE);cp _pcre.so ../pcre)

test: empty
test/run_tests.sh

clean:
-(cd src/pcre;$(RM) -f *.pyc *.pyo *.so)
-(cd src/_pcre;$(MAKE) clean)

empty:

.SILENT:
2 changes: 1 addition & 1 deletion src/_pcre/Makefile
Expand Up @@ -17,4 +17,4 @@ pcre: pcre_module.o pcre_regex.o pcre_match.o
$(CC) $(CFLAGS) -shared -L/usr/local/lib -lpcre pcre_module.o pcre_regex.o pcre_match.o -o _pcre.so

clean:
-rm *.o *.so
-rm -f *.o *.so

0 comments on commit 0ef9633

Please sign in to comment.