diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x[-rw-r--r--] | Makefile | 17 | ||||
-rwxr-xr-x | Makefile.vars | 1 |
3 files changed, 18 insertions, 1 deletions
@@ -11,3 +11,4 @@ common/weshd.h Makefile.cfg testclient root +weshd-*.tar* @@ -18,8 +18,9 @@ clean: # Une target pour remettre à zéro. mrproper: clean - $(call rmsg,Removing configuration.) + $(call rmsg,Removing configuration and tarballs.) $(call qcmd,$(RM) Makefile.cfg) + $(call qcmd,$(RM) $(NAME)-*.tar*) # Une target pour tout refaire. @@ -212,6 +213,20 @@ $(eval $(call make-daemon-obj-rule,$(src)))) .PHONY: all-client install-client # --- +# Création de l'archive de distribution (tarball). +# --- + +dist: mrproper + $(call bcmd,mkdir,$(NAME)-$(VERSION),$(MD) .dist) + $(call bcmd,cp,* $(NAME)-$(VERSION),$(CP) -R * .dist) + $(call qcmd,$(MV) .dist $(NAME)-$(VERSION)) + $(call bcmd,tarball,$(NAME)-$(VERSION),\ + tar czf $(NAME)-$(VERSION).tar.gz --exclude .git $(NAME)-$(VERSION)) + $(call qcmd,$(RM) -r $(NAME)-$(VERSION)) + +.PHONY: dist + +# --- # Test du couple client/démon. # --- diff --git a/Makefile.vars b/Makefile.vars index 139f454..90e3a51 100755 --- a/Makefile.vars +++ b/Makefile.vars @@ -49,6 +49,7 @@ RM := rm -f CP := cp + MV := mv LN := ln -sf MD := mkdir -p INST := install |