summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-07-23 09:42:46 +1000
committerBenjamin Tissoires <benjamin.tissoires@gmail.com>2014-07-28 09:18:15 -0400
commit1b572c4a482e7ae8ea7f664d4245e8c77fded5e1 (patch)
tree3c89c758a6486eae3dcc33b666239a097da73e59 /python
parentd15c7ae8f0bdce272ad4b64aba286bc048494d78 (diff)
python: move the generated event_names.py to the python bits
The conversion script now requires manually setting PYTHONPATH unless the evemu python bits are installed systemwide, but it's not used that often anyway. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Diffstat (limited to 'python')
-rw-r--r--python/Makefile.am2
-rw-r--r--python/evemu/Makefile.am5
2 files changed, 7 insertions, 0 deletions
diff --git a/python/Makefile.am b/python/Makefile.am
index 3ce3946..20e50f0 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -16,6 +16,8 @@
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
+SUBDIRS = evemu
+
nobase_python_PYTHON = \
$(wildcard evemu/*.py)
diff --git a/python/evemu/Makefile.am b/python/evemu/Makefile.am
new file mode 100644
index 0000000..7048627
--- /dev/null
+++ b/python/evemu/Makefile.am
@@ -0,0 +1,5 @@
+event_names.py: Makefile $(top_srcdir)/src/make-event-names.py
+ $(PYTHON) $(top_srcdir)/src/make-event-names.py --output=python > $@
+
+BUILT_SOURCES = event_names.py
+CLEANFILES = event_names.py event_names.pyc