mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
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:
14
Makefile.am
14
Makefile.am
@@ -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
|
||||
|
||||
@@ -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
0
python/ratbagctl.py → python/ratbagctl.in
Executable file → Normal file
Reference in New Issue
Block a user