summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2009-08-09 20:53:50 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:13 -0600
commit530c6ff02be9ce6604e16ac33ec24569a39f6b0c (patch)
tree9088120e8abb41c5426f3faa6b21e6eff58454cb /plugins
parent2d9534da516df2130d3f3b17eb4ae039cc47d4cf (diff)
add dist to makefiles
Diffstat (limited to 'plugins')
-rw-r--r--plugins/repo/Makefile.in16
-rw-r--r--plugins/users/Makefile.in12
2 files changed, 26 insertions, 2 deletions
diff --git a/plugins/repo/Makefile.in b/plugins/repo/Makefile.in
index fd84a25..6adec10 100644
--- a/plugins/repo/Makefile.in
+++ b/plugins/repo/Makefile.in
@@ -44,10 +44,10 @@ TOUCH ?= touch # This file doesn't use touch
# phony targets ####################################################
all : $(name)
-.PHONY : $(name) install uninstall clean distclean
+.PHONY : $(name) install uninstall clean distclean dist
.SUFFIXES :
-# main #############################################################
+# build ############################################################
mysrcdir = $(srcdir)/plugins/$(name)
myoutdir = out
@@ -74,6 +74,18 @@ distclean : clean
$(RM) Makefile
$(RM) -r out
+# dist #############################################################
+
+d = $(name)-$(ver)
+dist : $(d).tar.gz
+
+$(d).tar.gz : $(d)
+ tar -czf $@ $<
+
+$(d) : distclean
+ $(INSTALL) -m 777 -d $@
+ $(CP) -r $(mysrcdir)/* $@
+
# implicit rules ###################################################
b := @
diff --git a/plugins/users/Makefile.in b/plugins/users/Makefile.in
index e6f3c24..b97720b 100644
--- a/plugins/users/Makefile.in
+++ b/plugins/users/Makefile.in
@@ -74,6 +74,18 @@ distclean : clean
$(RM) Makefile
$(RM) -r out
+# dist #############################################################
+
+d = $(name)-$(ver)
+dist : $(d).tar.gz
+
+$(d).tar.gz : $(d)
+ tar -czf $@ $<
+
+$(d) : distclean
+ $(INSTALL) -m 777 -d $@
+ $(CP) -r $(mysrcdir)/* $@
+
# implicit rules ###################################################
b := @