Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Makefile.am: respect configure --program-suffix (#3944)
Browse files Browse the repository at this point in the history
related to #3838
  • Loading branch information
stapelberg committed Feb 22, 2020
1 parent 967ec2e commit 0ba325c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile.am
Expand Up @@ -35,6 +35,14 @@ dist_i3conf_DATA = \
etc/config \
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
xsessionsdir = $(datarootdir)/xsessions
dist_applications_DATA = \
Expand Down Expand Up @@ -146,7 +154,8 @@ dirstamp = .dirstamp
dirstamps = \
docs/$(dirstamp) \
man/$(dirstamp) \
parser/$(dirstamp)
parser/$(dirstamp) \
etc/$(dirstamp)
DISTCLEANFILES = $(dirstamps)

$(dirstamps):
Expand Down

0 comments on commit 0ba325c

Please sign in to comment.