X-Git-Url: https://git.distorted.org.uk/~mdw/chopwood/blobdiff_plain/a6af9c2731b482dbf13fb26224cf5dcae7d757a5..6971f41b27842d92374b60f380f844cf396734a1:/Makefile diff --git a/Makefile b/Makefile index 13a7b59..3ccd4e5 100644 --- a/Makefile +++ b/Makefile @@ -117,4 +117,23 @@ CLEANFILES += $(TARGETS) clean::; rm -f $(CLEANFILES) .PHONY: clean +###-------------------------------------------------------------------------- +### Distributions. + +distdir = $(PACKAGE)-$(VERSION) + +DISTFILES = $(SOURCES) +DISTFILES += AGPLv3 +DISTFILES += Makefile get-version +DISTFILES += userv.rc + +dist: + rm -rf $(distdir) + mkdir $(distdir) + cp $(DISTFILES) $(distdir) + echo $(VERSION) >$(distdir)/RELEASE + tar cvfz $(distdir).tar.gz $(distdir) + rm -rf $(distdir) +.PHONY: dist + ###----- That's all, folks --------------------------------------------------