summaryrefslogtreecommitdiff
path: root/main.mk.in
diff options
context:
space:
mode:
authorLuke Shumaker <luke@HP-dv6426us-u904.(none)>2009-11-23 21:14:21 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:18 -0600
commitc874cd6d771c21a3e79fd7af551b6236022ca8c7 (patch)
treee3cc017a0e9e9591ec1d1380acf38c6d4803cf38 /main.mk.in
parent07dd960ad08c52a923a1e6d8485d0cd5c9040733 (diff)
I'm really not sure, these are uncommited changes, and I haven't touched it in a while.
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) $@
-