summaryrefslogtreecommitdiff
path: root/main.mk.in
diff options
context:
space:
mode:
Diffstat (limited to 'main.mk.in')
-rw-r--r--main.mk.in18
1 files changed, 7 insertions, 11 deletions
diff --git a/main.mk.in b/main.mk.in
index b311089..2d55793 100644
--- a/main.mk.in
+++ b/main.mk.in
@@ -17,7 +17,8 @@ ver = 0.9
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
-export rvs = $(name)
+rvs = $(name)
+dirs += $(libexecdir)/$(rvs)
# phony targets ######################################################
all : wrapper p-build
@@ -37,15 +38,15 @@ filelist = \
install : install-wrapper libexec p-install
# $(libexecdir)/rvs/*
-libexec : $(libexecdir)/$(rvs)/plugins
-$(libexecdir)/$(rvs)/plugins : $(libexecdir)/$(rvs)
- $(TOUCH) $@
+libexec : $(DESTDIR)$(libexecdir)/$(rvs)/plugins
+$(DESTDIR)$(libexecdir)/$(rvs)/plugins : $(DESTDIR)$(libexecdir)/$(rvs)
+ touch $@
# uninstall ##########################################################
uninstall :
- $(RM) $(bindir)/$(rvs)
- $(RM) -r $(libexecdir)/$(rvs)
+ $(RM) $(DESTDIR)$(bindir)/$(rvs)
+ $(RM) -r $(DESTDIR)$(libexecdir)/$(rvs)
# clean ##############################################################
@@ -70,8 +71,3 @@ $(RVS) : install-wrapper
p-% : plugins/Makefile ; $(MAKE) -C plugins $*
-# implicit rules #####################################################
-
-$(libexecdir)/$(rvs) :
- $(MKDIR) $@
-