summaryrefslogtreecommitdiff
path: root/main.mk.in
diff options
context:
space:
mode:
authorLuke Shumaker <luke@HP-dv6246us-u910.(none)>2010-03-28 22:58:16 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:19 -0600
commit9510d867ff9a59fc203d79716e86c9f14e1b95f0 (patch)
treeb88bedc38f788e8755bcb7b93d5982a4ea0863ea /main.mk.in
parente45d06ca41498531b846c78b0ab560252d59dc19 (diff)
builds, cleans, installs, and uninstalls correctly! Now just to
make sure it works!
Diffstat (limited to 'main.mk.in')
-rw-r--r--main.mk.in24
1 files changed, 15 insertions, 9 deletions
diff --git a/main.mk.in b/main.mk.in
index b698651..e3a6c96 100644
--- a/main.mk.in
+++ b/main.mk.in
@@ -42,11 +42,17 @@ filelist = \
$(patsubst $(srcdir)/%,%,$(shell find $(srcdir)/*/* -type f))
# install ############################################################
-install : install-wrapper install-plugins
-uninstall : uninstall-wrapper uninstall-plugins
clean : clean-wrapper clean-plugins
distclean : clean distclean-wrapper distclean-plugins
$(RM) Makefile *.mk
+install : install-wrapper install-plugins
+uninstall :
+ $(MAKE) uninstall-plugins
+ $(MAKE) uninstall-wrapper
+ -rmdir $(BINDIR)
+ -rmdir $(ETCDIR)
+ -rmdir $(LIBDIR)
+ -rmdir $(sysconfdir)
# wrapper ############################################################
@@ -63,11 +69,11 @@ $(RVS) : install-wrapper
# plugins ############################################################
plugins : build-plugins
-build-plugins : plugins/ plugins/Makefile ; $(MAKE) -C $<
-uninstall-plugins : plugins/ plugins/Makefile ; $(MAKE) -C $< uninstall
-clean-plugins : plugins/ plugins/Makefile ; $(MAKE) -C $< clean
-distclean-plugins : plugins/ plugins/Makefile ; $(MAKE) -C $< distclean
-dist-plugins : plugins/ plugins/Makefile ; $(MAKE) -C $< dist
-install-plugins : plugins/ plugins/Makefile \
- plugins $(RVS) ; $(MAKE) -C $< install
+build-plugins : plugins/ plugins/Makefile ; $(MAKE) -C $<
+clean-plugins : plugins/ plugins/Makefile ; $(MAKE) -C $< clean
+distclean-plugins : plugins/ plugins/Makefile ; $(MAKE) -C $< distclean
+dist-plugins : plugins/ plugins/Makefile ; $(MAKE) -C $< dist
+uninstall-plugins : plugins/ plugins/Makefile $(RVS) ; $(MAKE) -C $< uninstall
+install-plugins : plugins/ plugins/Makefile $(RVS) \
+ plugins ; $(MAKE) -C $< install