From 530c6ff02be9ce6604e16ac33ec24569a39f6b0c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 9 Aug 2009 20:53:50 -0400 Subject: add dist to makefiles --- plugins/repo/Makefile.in | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'plugins/repo') 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 := @ -- cgit v1.2.3-54-g00ecf