diff options
| -rw-r--r-- | Makefile | 12 | 
1 files changed, 9 insertions, 3 deletions
| @@ -1,11 +1,14 @@  VERSION = 3.82 -all: tempdirs tarball removedirs distrib removetar +all: complete + +# checkenv is redundant here but prevents execution of anything before failing +complete: checkenv tempdirs tarball removedirs distrib removetar  tarball:  	rsync -avu bin .bash .bash_profile .bashrc .flake8 .gitconfig .perlcriticrc .profile .pylintrc .tmux.conf .tmux.conf.local tmux-gpakosz tmux-yank --exclude=.git --exclude=.gitattributes --exclude=.github --exclude=.gitignore --exclude='LICENSE*' --exclude='README*' distribute/tar/  	tar -C distribute/tar -cvJf dotfiles.tar.xz . -	rm -vrf distribute/tar +	rm -rf distribute/tar  tempdirs:  	@mkdir -pv distribute/tar @@ -13,8 +16,11 @@ tempdirs:  removedirs:  	rm -rf distribute/tar -distrib: +distrib: checkenv  	ansible-playbook distrib.yml +checkenv: +	@if [ -z "$$DFDISTRIB" ];then printf "DFDISTRIB not set, cannot determine target.\\n" >&2;exit 101;fi +  removetar:  	@rm -vf dotfiles.tar.xz | 
