aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-16 18:38:49 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-16 18:38:49 +1200
commit0b1c99ffb1c3019e8afb9dcc542fbc5e868baef1 (patch)
tree9712aa161c25232e0f6561ee181b82eb42af347a /Makefile
parentPut "all" subtargets on their own line (diff)
downloaddotfiles-0b1c99ffb1c3019e8afb9dcc542fbc5e868baef1.tar.gz
dotfiles-0b1c99ffb1c3019e8afb9dcc542fbc5e868baef1.zip
Template traps in scripts depending on mktd(1)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 27 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3caf298d..e1a65a0a 100644
--- a/Makefile
+++ b/Makefile
@@ -60,17 +60,25 @@ EMAIL := tom@sanctum.geek.nz
KEY := 0xC14286EA77BB8872
SENDMAIL := /usr/bin/msmtp
-all : bin/sd2u \
+all : bin/rndl \
+ bin/sd2u \
bin/su2d \
+ bin/tlcs \
+ bin/try \
bin/unf \
+ bin/urlc \
git/gitconfig \
gnupg/gpg.conf
clean distclean :
rm -f \
+ bin/rndl \
bin/sd2u \
bin/su2d \
+ bin/tlcs \
+ bin/try \
bin/unf \
+ bin/urlc \
games/acq \
games/kvlt \
games/zs \
@@ -80,6 +88,24 @@ clean distclean :
mutt/muttrc \
tmux/tmux.conf
+# shell scripts that need a templated trap to remove a temporary directory
+bin/rndl : bin/rndl.m4 include/mktd.trap.sh
+ m4 bin/rndl.m4 > "$@"
+ chmod +x "$@"
+
+bin/tlcs : bin/tlcs.m4 include/mktd.trap.sh
+ m4 bin/tlcs.m4 > "$@"
+ chmod +x "$@"
+
+bin/try : bin/try.m4 include/mktd.trap.sh
+ m4 bin/try.m4 > "$@"
+ chmod +x "$@"
+
+bin/urlc : bin/urlc.m4 include/mktd.trap.sh
+ m4 bin/urlc.m4 > "$@"
+ chmod +x "$@"
+
+# sed scripts that need a pathed shebang
bin/sd2u : bin/sd2u.sed
bin/shb bin/sd2u.sed sed -f > "$@"
chmod +x "$@"