diff options
author | mail_redacted_for_web | 2022-03-21 12:07:33 +0100 |
---|---|---|
committer | mail_redacted_for_web | 2022-03-21 12:07:33 +0100 |
commit | 11abbcbade2007fe352716161ff9d09843b9503c (patch) | |
tree | 06ae9f1e7a04bb4eccaf8fe2bf5b3bf8a2c3d35b | |
parent | e7b2260316caf53f3912fabf71ad7b810c24703c (diff) | |
download | dotfiles-11abbcbade2007fe352716161ff9d09843b9503c.tar.bz2 |
check for DFDISTRIB, less output on rm
-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 |