Commit 1eeec8be authored by Simon McVittie's avatar Simon McVittie

Replace configure.py mechanism with something that actually works

parent 0c897525
/build/
/build-stamp
/configure.mk
/configure-stamp
/debian/files
/debian/debhelper-build-stamp
......
......@@ -4,7 +4,8 @@ datadir := /usr/share
gamedatadir := ${datadir}
PYTHON := python3
$(eval $(shell PYTHONPATH=. ${PYTHON} tools/configure.py))
-include configure.mk
pkgdatadir := ${gamedatadir}/game-data-packager
runtimedir := ${gamedatadir}/game-data-packager-runtime
......@@ -78,6 +79,9 @@ default: $(png) $(svgz) $(json_from_data) $(launcher_json) \
out/bash_completion out/changelog.gz \
out/game-data-packager out/vfs.zip out/memento-mori-2.svg
configure.mk: tools/configure.py $(wildcard game_data_packager/*.py game_data_packager/*/*.py)
PYTHONPATH=. ${PYTHON} tools/configure.py > $@
out/CACHEDIR.TAG:
@mkdir -p out
( echo "Signature: 8a477f597d28d17""2789f06886806bc55"; \
......
......@@ -17,15 +17,16 @@
import os
import sys
import textwrap
from game_data_packager.packaging import (get_native_packaging_system)
def main():
print(get_native_packaging_system().substitute('''
print(get_native_packaging_system().substitute(textwrap.dedent('''
bindir := ${bindir}
datadir := ${datadir}
gamedatadir := ${assets}
''', 'unknown-package-name'))
'''), 'unknown-package-name'))
if __name__ == '__main__':
main()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment