Use automake to generate ratbagctl

All we do is a single sed, we can leave that to automake.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2017-04-24 13:42:29 +10:00
committed by bentiss
parent f5270e1539
commit 8f7bf150df
3 changed files with 5 additions and 12 deletions

View File

@@ -111,17 +111,9 @@ BUILT_SOURCES += ratbagd.service dbus/org.freedesktop.ratbag1.service
# ------------------------------------------------------------------------------
# python module
dist_pkgpython_DATA = \
python/ratbagd/__init__.py
dist_pkgpython_DATA = python/ratbagd/__init__.py
bin_SCRIPTS = python/ratbagctl
bin_SCRIPTS = \
python/ratbagctl
python/ratbagctl: python/ratbagctl.py
$(AM_V_GEN)$(MKDIR_P) python
$(AM_V_GEN)$(SED) -e "s/@version@/$(PACKAGE_VERSION)/" < $^ > $@
EXTRA_DIST += python/ratbagctl.py
BUILT_SOURCES += python/ratbagctl
EXTRA_DIST += python/ratbagctl.in
dist_man1_MANS += doc/ratbagctl.1

View File

@@ -144,7 +144,8 @@ AC_SUBST(DBUS_SYSTEM_CONFIG_DIR)
# ------------------------------------------------------------------------------
# report
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([Makefile
python/ratbagctl])
AC_OUTPUT
AC_MSG_RESULT([

0
python/ratbagctl.py → python/ratbagctl.in Executable file → Normal file
View File