summaryrefslogtreecommitdiff
path: root/plugins/plugin.mk.in
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/plugin.mk.in')
-rw-r--r--plugins/plugin.mk.in13
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/plugin.mk.in b/plugins/plugin.mk.in
index ed5dca8..6980538 100644
--- a/plugins/plugin.mk.in
+++ b/plugins/plugin.mk.in
@@ -37,8 +37,13 @@ shOutFiles = $(patsubst $(mysrcdir)/%,$(myoutdir)/%,$(basename $(shSrcFiles)))
$(name) : $(myoutdir) $(shOutFiles) $(myoutdir)/plugin.conf
-$(myoutdir)/plugin.conf : $(mysrcdir)/plugin.conf
+$(myoutdir)/plugin.conf : $(mysrcdir)/plugin.conf.in
$(INSTALL_DATA) $< $@
+ $(SED) -i \
+ -e 's/$bname@/$(subst /,\/,$(name))/g' \
+ -e 's/$bver@/$(subst /,\/,$(ver))/g' \
+ $@
+
# (un)install ######################################################
@@ -68,12 +73,6 @@ $(myoutdir)/% : $(mysrcdir)/%.sh $(myoutdir)
-e 's/$bID@/$(subst /,\/,$(id))/g' \
$@
-plugin.conf : plugin.conf.in
- $(SED) \
- -e 's/$bname@/$(subst /,\/,$(name))/g' \
- -e 's/$bver@/$(subst /,\/,$(ver))/g' \
- $< > $@
-
$(DESTDIR)$(libexecdir)/$(rvs) $(myoutdir) :
$(MKDIR) $@