From 0d9ebaafb18dbeb52b0da297202393d30c4d62cf Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 20 Nov 2007 12:00:16 +0000 Subject: dist target. --- Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 430fc86f..51d93666 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.41 2007-11-16 21:31:03 nicm Exp $ +# $Id: Makefile,v 1.42 2007-11-20 12:00:16 nicm Exp $ .SUFFIXES: .c .o .y .h .PHONY: clean @@ -63,6 +63,10 @@ CFLAGS+= -DUSE_LIBUTIL_H OBJS= ${SRCS:S/.c/.o/:S/.y/.o/} +DISTDIR= ${PROG}-${VERSION} +DISTFILES= *.[chyl] Makefile GNUmakefile *.[1-9] NOTES TODO \ + `find examples compat -type f -and ! -path '*CVS*'` + CLEANFILES= ${PROG} *.o .depend *~ ${PROG}.core *.log .c.o: @@ -80,6 +84,15 @@ ${PROG}: ${OBJS} depend: mkdep ${CFLAGS} ${INCDIRS} ${SRCS:M*.c} +dist: clean + grep '^#DEBUG=' Makefile + grep '^#DEBUG=' GNUmakefile + [ "`(grep '^VERSION' Makefile; grep '^VERSION' GNUmakefile)| \ + uniq -u`" = "" ] + tar -zc \ + -s '/.*/${DISTDIR}\/\0/' \ + -f ${DISTDIR}.tar.gz ${DISTFILES} + lint: lint -cehvx ${CFLAGS:M-D*} ${SRCS:M*.c} -- cgit