diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-11-22 20:51:59 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-11-22 20:51:59 +0000 |
commit | 5c593d81a08ff84577c62016b2b2ef803b052614 (patch) | |
tree | b9f9b37cb74bdfa9757a8fe56095fd571f65953b /feed | |
parent | 64d49f2037e5fe1bb2ab8e3670bf4b8f1a62acac (diff) |
compile python scripts
git-svn-id: file:///home/lennart/svn/public/sse/trunk@23 5fbabb74-0606-0410-a5e4-b5cc6a42724e
Diffstat (limited to 'feed')
-rw-r--r-- | feed/Makefile | 11 | ||||
-rwxr-xr-x | feed/compile | 5 |
2 files changed, 13 insertions, 3 deletions
diff --git a/feed/Makefile b/feed/Makefile index 94c2540..860010f 100644 --- a/feed/Makefile +++ b/feed/Makefile @@ -2,15 +2,20 @@ CFLAGS=-Wextra -O3 -pipe #CFLAGS=-Wextra -g -O0 -pipe LIBS=-lfl -all: sse_lex_c +PYO=sse_config.pyo sse_debian.pyo sse_feed.pyo sse_grab.pyo sse_db.pyo sse_defs.pyo sse_fm.pyo sse_tar.pyo -sse_lex_c.yy.c: sse_lex_c.l +%.yy.c: %.l flex -o $@ $^ +%.pyo: %.py + ./compile $< + +all: sse_lex_c $(PYO) + sse_lex_c: sse_lex_c.yy.o $(CC) -o $@ $^ $(LIBS) clean: - rm -f *.o sse_lex_c.yy.c sse_lex_c + rm -f *.o sse_lex_c.yy.c sse_lex_c *.pyc *.pyo .PHONY: all clean diff --git a/feed/compile b/feed/compile new file mode 100755 index 0000000..f4e6eca --- /dev/null +++ b/feed/compile @@ -0,0 +1,5 @@ +#!/usr/bin/python -OO + +import py_compile, sys + +py_compile.compile(sys.argv[1]) |