aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Schneider <qsx@chaotikum.eu>2022-02-18 22:38:05 +0100
committerThomas Schneider <qsx@chaotikum.eu>2022-02-18 22:44:54 +0100
commit59af744246f38fb3c1cba33d06e680d29f866abd (patch)
tree9abcf97d100c48595135f4ef3f383c9b1c1db55d /Makefile
parentb38167526f773e2ee8209541323cb5d6126963f1 (diff)
Separate host-specific config with files or inline
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
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