aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-16 18:29:22 +0200
committerMattias Andrée <maandree@kth.se>2021-09-16 18:29:22 +0200
commit9399cc5c69131d0c22a7825b1c2b7d0d6e4dbc7e (patch)
treef223a554016baf7776794b6e4a26f99093ae07a3 /Makefile
parentfix deps (diff)
downloadmetar-9399cc5c69131d0c22a7825b1c2b7d0d6e4dbc7e.tar.gz
metar-9399cc5c69131d0c22a7825b1c2b7d0d6e4dbc7e.tar.bz2
metar-9399cc5c69131d0c22a7825b1c2b7d0d6e4dbc7e.tar.xz
Improve makefile1.3.4
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index aa796a4..e4eafc5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
.POSIX:
-PREFIX = /usr/local
-MANPREFIX = $(PREFIX)/share/man
+CONFIGFILE = config.mk
+include $(CONFIGFILE)
+
all:
@:
@@ -9,18 +10,15 @@ all:
install:
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1"
- mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/metar"
cp -- metar "$(DESTDIR)$(PREFIX)/bin"
cp -- metar.1 "$(DESTDIR)$(MANPREFIX)/man1"
- cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/metar"
chmod -- 755 "$(DESTDIR)$(PREFIX)/bin/metar"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/bin/metar"
-rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/metar.1"
- -rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/metar"
clean:
@:
-.PHONY: all clean install uninstall
+.PHONY: all install uninstall clean