diff options
author | mail_redacted_for_web | 2022-03-21 11:21:28 +0100 |
---|---|---|
committer | mail_redacted_for_web | 2022-03-21 11:21:28 +0100 |
commit | 1475a69efda4e05b559d7868020f3c0d0f599cb4 (patch) | |
tree | 3bd39aca57d7d75381c16e4afe6985e899429ce5 /Makefile | |
parent | 1181acc15de33c7ccc30404054ef0bffede47554 (diff) | |
download | dotfiles-1475a69efda4e05b559d7868020f3c0d0f599cb4.tar.bz2 |
distribution mechanism, more targets in make
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -1,9 +1,20 @@ VERSION = 3.82 -all: tarball +all: 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 + +tempdirs: @mkdir -pv distribute/tar - @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 distrib.tar.xz . - @rm -vrf distribute/tar + +removedirs: + rm -rf distribute/tar + +distrib: + ansible-playbook distrib.yml + +removetar: + @rm -vf dotfiles.tar.xz |