Skip to content

Commit

Permalink
Fix generation of org.freedesktop.locale1.service
Browse files Browse the repository at this point in the history
@libexecdir@ is replaced with '${prefix}/libexec' by configure. We
need the value of $prefix instead. Use a sed in Makefile.am, as
recommended by the docs
  • Loading branch information
pierre-labastie committed Dec 7, 2019
1 parent 63fc01a commit 193e336
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ dist_polkitaction_DATA = \
$(NULL)

pidfile = @pidfile@
#do_subst = $(SED) -e 's,[@]libexecdir[@],$(libexecdir),g' \
# -e 's,[@]pidfile[@],$(pidfile),g' \
# $(NULL)
do_subst = $(SED) -e 's,[@]libexecdir[@],$(libexecdir),g' \
-e 's,[@]pidfile[@],$(pidfile),g' \
$(NULL)

#%.service : %.service.in
# $(do_subst) < $(srcdir)/$< > $(srcdir)/$@
%.service : %.service.in
# $(do_subst) < $(srcdir)/$< > $(builddir)/$@
$(do_subst) < $< > $@

man_MANS = data/blocaled.8

Expand Down

0 comments on commit 193e336

Please sign in to comment.