From e98ba9f9c42a55d86b742f8a6c3fd576fc2bf939 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 28 Nov 2013 16:31:09 +0100 Subject: use git for generating archive --- Makefile | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b9ba542..9da00bc 100644 --- a/Makefile +++ b/Makefile @@ -21,17 +21,8 @@ clean: rm -fr $(package)-$(version) for d in $(subdir); do (cd $$d ; make $@ ); done -dir: - mkdir $(package)-$(version) - -localcopy: - tar c --exclude=.svn $(files) | tar x -C $(package)-$(version) - -tar: - tar cvYf $(package)-$(version).tar.xz $(package)-$(version) - rm -fr $(package)-$(version) - -dist: clean dir localcopy tar +dist: + @git archive --prefix=$(package)-$(version)/ HEAD | xz > $(NAME)-$(VERSION).tar.xz install: install -d $(distdir)/usr/{sbin/,share/drakpxelinux/} @@ -41,4 +32,4 @@ install: install -m755 deploy_get_autoinst.pl $(distdir)/usr/sbin/deploy_get_autoinst.pl install -m644 deployd.xinetd $(distdir)/etc/xinetd.d/deployd install -m644 deploy_get_autoinst.xinetd $(distdir)/etc/xinetd.d/deploy_get_autoinst - for d in $(subdirs); do ( cd $$d ; make $@ ) ; done \ No newline at end of file + for d in $(subdirs); do ( cd $$d ; make $@ ) ; done -- cgit v1.2.1