Makefile.am: respect configure --program-suffix (#3944)

related to #3838
This commit is contained in:
Michael Stapelberg 2020-02-22 13:47:49 +01:00 committed by GitHub
parent 967ec2e0ea
commit 0ba325c5f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -35,6 +35,14 @@ dist_i3conf_DATA = \
etc/config \ etc/config \
etc/config.keycodes etc/config.keycodes
I3STATUS_INSTALL_NAME = $(shell echo i3status | sed '@program_transform_name@')
etc/config: etc/$(dirstamp)
$(AM_V_GEN) sed "s,status_command i3status,status_command $(I3STATUS_INSTALL_NAME),g" $(top_srcdir)/etc/config > etc/config
etc/config.keycodes: etc/$(dirstamp)
$(AM_V_GEN) sed "s,status_command i3status,status_command $(I3STATUS_INSTALL_NAME),g" $(top_srcdir)/etc/config.keycodes > etc/config.keycodes
applicationsdir = $(datarootdir)/applications applicationsdir = $(datarootdir)/applications
xsessionsdir = $(datarootdir)/xsessions xsessionsdir = $(datarootdir)/xsessions
dist_applications_DATA = \ dist_applications_DATA = \
@ -146,7 +154,8 @@ dirstamp = .dirstamp
dirstamps = \ dirstamps = \
docs/$(dirstamp) \ docs/$(dirstamp) \
man/$(dirstamp) \ man/$(dirstamp) \
parser/$(dirstamp) parser/$(dirstamp) \
etc/$(dirstamp)
DISTCLEANFILES = $(dirstamps) DISTCLEANFILES = $(dirstamps)
$(dirstamps): $(dirstamps):