From 04f0ce65f3352250d936f3df6e28d8ba2d7d92c8 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 1 Nov 2006 21:07:55 +0000 Subject: [PATCH] Fixes dist creation --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ff468ec..a5c6858 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ PACKAGE = utils VERSION = 0.0.0 SUBDIRS = src +RM = rm -f LN = ln -sf TAR = tar -czvf @@ -17,7 +18,7 @@ distclean: @for i in $(SUBDIRS); do (cd $$i && $(MAKE) distclean) || exit; done dist: - $(RM) $(PACKAGE)-$(VERSION) + $(RM) -r $(PACKAGE)-$(VERSION) $(LN) . $(PACKAGE)-$(VERSION) @$(TAR) $(PACKAGE)-$(VERSION).tar.gz \ $(PACKAGE)-$(VERSION)/src/basename.c \ @@ -59,11 +60,11 @@ dist: $(PACKAGE)-$(VERSION)/src/uniq.c \ $(PACKAGE)-$(VERSION)/src/unlink.c \ $(PACKAGE)-$(VERSION)/src/wc.c \ + $(PACKAGE)-$(VERSION)/src/Makefile \ $(PACKAGE)-$(VERSION)/src/common.c \ $(PACKAGE)-$(VERSION)/src/project.conf \ - $(PACKAGE)-$(VERSION)/src/Makefile \ - $(PACKAGE)-$(VERSION)/project.conf \ - $(PACKAGE)-$(VERSION)/Makefile + $(PACKAGE)-$(VERSION)/Makefile \ + $(PACKAGE)-$(VERSION)/project.conf $(RM) $(PACKAGE)-$(VERSION) install: all @@ -71,3 +72,5 @@ install: all uninstall: @for i in $(SUBDIRS); do (cd $$i && $(MAKE) uninstall) || exit; done + +.PHONY: all subdirs clean distclean dist install uninstall