### -*-makefile-*- TARGETS = all: HOST = $(shell hostname) M4 = m4 TARGETS += config config: config.m4 $(M4) -P $< >$@.new && mv $@.new $@ TARGETS += authorized_keys authorized_keys: authkeys.base $(wildcard authkeys.$(HOST)/*) { echo "### DO NOT EDIT! Generated from authkeys.*" && \ cat $^ | grep "^[^#]"; \ } >$@.new && mv $@.new $@ TARGETS += known_hosts known_hosts: /var/cache/ssh-certs/known_hosts $(wildcard known_hosts.*) { echo "### DO NOT EDIT! Generated from known_hosts.*" && \ cat $^ | grep "^[^#]"; \ } >$@.new && mv $@.new $@ all: $(TARGETS) clean:; rm -f $(TARGETS)