From 59af744246f38fb3c1cba33d06e680d29f866abd Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Fri, 18 Feb 2022 22:38:05 +0100 Subject: Separate host-specific config with files or inline --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..36d0063 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +HOST = $(shell hostname -s) +SRCS = $(wildcard $(HOST).*) +OBJS = $(patsubst $(HOST).%,dot.%,$(SRCS)) + +all: $(OBJS) + +dot.%: $(HOST).% + ln -s $< $@ + +install: all + ./install.py +.PHONY: install -- cgit v1.2.3