X-Git-Url: https://git.madduck.net/etc/ssh.git/blobdiff_plain/1ee9c4705863e36b1e3fbe9e7525fdcf2b14cb40..9de1f05f5c9294632ab0e34752849bc1936c7e05:/.ssh/Makefile diff --git a/.ssh/Makefile b/.ssh/Makefile index 0e26cbb..cfb923b 100644 --- a/.ssh/Makefile +++ b/.ssh/Makefile @@ -18,9 +18,15 @@ authorized_keys: $(wildcard authorized_keys.d/*) echo; \ done > $@ +ifeq ($(strip $(wildcard config.local)),) +LOCAL_CONFIG=/dev/null +else +LOCAL_CONFIG=config.local +endif + SSH_VERSION = $(shell ssh -V 2>&1) -config: config.in - cp $< $@ +config: $(LOCAL_CONFIG) config.in + cat $^ > $@ case "$(SSH_VERSION)" in \ (OpenSSH_6.[0123]*) \ sed -ri -e 's,^.+\bCanonical.+$$,##UNSUPPORTED##&,' \