aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile9
-rw-r--r--config.mk2
2 files changed, 5 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index e59affe..ea7c41b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
.POSIX:
-PREFIX = /usr
-MANPREFIX = $(PREFIX)/share/man
+CONFIGFILE = config.mk
+include $(CONFIGFILE)
+
all:
@:
@@ -9,16 +10,12 @@ all:
install:
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1"
- mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/blue"
cp -- blue "$(DESTDIR)$(PREFIX)/bin/"
cp -- blue.1 "$(DESTDIR)$(MANPREFIX)/man1/"
- cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/blue/"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/bin/blue"
-rm -f -- blue.1 "$(DESTDIR)$(MANPREFIX)/man1/blue.1"
- -rm -f -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/blue/LICENSE"
- -rmdir -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/blue"
clean:
@:
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..59032da
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,2 @@
+PREFIX = /usr
+MANPREFIX = $(PREFIX)/share/man