X-Git-Url: https://git.madduck.net/etc/ssh.git/blobdiff_plain/1ee9c4705863e36b1e3fbe9e7525fdcf2b14cb40..a4fa81967fccf40c28854817ee10d3560b033037:/.ssh/Makefile?ds=inline 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##&,' \