Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/mwlib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mwlib/Makefile')
-rw-r--r--mwlib/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/mwlib/Makefile b/mwlib/Makefile
new file mode 100644
index 0000000..0a7abd2
--- /dev/null
+++ b/mwlib/Makefile
@@ -0,0 +1,20 @@
+RE2C = re2c -w --no-generation-date
+
+all: _expander.cc _mwscan.cc _mwscan.so _expander.so
+
+_expander.so: _expander.cc
+ (cd .. && python ./setup.py-mwlib build_ext --inplace build)
+
+_mwscan.so: _mwscan.cc
+ (cd .. && python ./setup.py-mwlib build_ext --inplace build)
+
+_expander.cc: _expander.re
+ $(RE2C) -o _expander.cc _expander.re
+
+_mwscan.cc: _mwscan.re
+ $(RE2C) -o _mwscan.cc _mwscan.re
+
+clean::
+ rm -rf *.pyc *~ *.so build a.out
+
+