summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 3 insertions, 12 deletions
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