git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Pfeiffer <coding _ lirion.de> 2022-03-21 12:07:33 +0100
committerHarald Pfeiffer <coding _ lirion.de> 2022-03-21 12:07:33 +0100
commit11abbcbade2007fe352716161ff9d09843b9503c (patch)
tree06ae9f1e7a04bb4eccaf8fe2bf5b3bf8a2c3d35b
parente7b2260316caf53f3912fabf71ad7b810c24703c (diff)
downloaddotfiles-11abbcbade2007fe352716161ff9d09843b9503c.tar.bz2
check for DFDISTRIB, less output on rm
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0a35cc0..787e2f4 100644
--- a/Makefile
+++ b/Makefile
@@ -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