summaryrefslogtreecommitdiff
path: root/plugins/repo/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/repo/Makefile.in')
-rw-r--r--plugins/repo/Makefile.in16
1 files changed, 14 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 := @