fix and generalize
[hband-tools.git] / bash / Makefile
blob905a0ce38c271142981045ddc918eeae86ff6bbc
2 define mkdir-recipe
3 mkdir -p $@
4 @echo remove $@ >> uninstall.sh
5 endef
7 define install-dep-recipe
8 install --compare $< $@
9 @echo remove $@ >> uninstall.sh
10 endef
13 default:
14 @echo may be interested in: bash-command-not-found-handle
15 @false
17 .PHONY: default
19 bash-command-not-found-handle: /etc/profile.d/bash.d/command-not-found-handle.sh
21 .PHONY: bash-command-not-found-handle
23 /etc/profile.d/bash.d/command-not-found-handle.sh: command-not-found-handle.sh | /etc/profile.d/bash.d
24 $(install-dep-recipe)
26 /etc/profile.d/bash.d:
27 $(mkdir-recipe)
29 /usr/lib/tool/ansi-codes: ansi-codes | /usr/lib/tool
30 $(install-dep-recipe)
32 /usr/lib/tool:
33 $(mkdir-recipe)