aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..71a9ebc
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+M4 := m4
+M4_OPTS := -P
+M4_COMMON_DEPS = system.m4
+
+define M4_EXEC
+ ${M4} ${M4_OPTS} $< > $@
+endef
+
+TARGETS := linux/tmux.conf \
+ Common/zshrc \
+ linux/qtile/config/config.py
+
+all: $(TARGETS)
+
+linux/tmux.conf: linux/tmux.conf.m4 \
+ ${M4_COMMON_DEPS}
+ $(call M4_EXEC)
+
+Common/zshrc: Common/zshrc.m4 \
+ ${M4_COMMON_DEPS}
+ $(call M4_EXEC)
+
+linux/qtile/config/config.py: linux/qtile/config/config.py.m4 \
+ linux/qtile/config/screen.m4.py \
+ linux/qtile/config/group.m4.py \
+ linux/qtile/config/layout.m4.py \
+ linux/qtile/config/keys.m4.py \
+ ${M4_COMMON_DEPS}
+ $(call M4_EXEC)