[PATCH xmetagen] add make config options
Export this patch
From: Dakota Walsh <kota@nilsu.org>
This patch adds a config.mk file and includes it in the Makefile.
Doesn't really matter I just noticed you forgot to do this when I was
cloning this and vtt lol :P
---
Makefile | 7 ++++++-
config.mk | 3 +++
2 files changed, 9 insertions(+), 1 deletion(-)
create mode 100644 config.mk
diff --git a/Makefile b/Makefile
index d95a28e..487fbc5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,8 @@
# xmetagen
-PREFIX=/usr/local
+
+.POSIX:
+
+include config.mk
install:
install -D xim "$(PREFIX)/bin/xim"
@@ -18,3 +21,5 @@ uninstall:
rm "$(PREFIX)/bin/xrmm"
rm "$(PREFIX)/bin/xir"
rm "$(PREFIX)/share/zsh/site-functions/_xmetagen"
+
+.PHONY: install uninstall
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..6a68e0b
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,3 @@
+# xmetagen
+
+PREFIX = $(HOME)/.local
--
2.32.0