diff options
author | Mattias Andrée <maandree@kth.se> | 2017-12-11 19:22:03 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-12-11 19:23:24 +0100 |
commit | 2a13aea07c32c7e2f29bd7a08dfbfb19451ad0a7 (patch) | |
tree | 830da86e6844190ad1460e030973b1c49fbb6547 /Makefile | |
parent | Allow lower case (diff) | |
download | metar-2a13aea07c32c7e2f29bd7a08dfbfb19451ad0a7.tar.gz metar-2a13aea07c32c7e2f29bd7a08dfbfb19451ad0a7.tar.bz2 metar-2a13aea07c32c7e2f29bd7a08dfbfb19451ad0a7.tar.xz |
Simplify makefile, change license, and don't use upcase for variables in usage and man page1.3.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 38 |
1 files changed, 17 insertions, 21 deletions
@@ -1,30 +1,26 @@ -PREFIX = /usr -BIN = /bin -DATA = /share -BINDIR = $(PREFIX)$(BIN) -DATADIR = $(PREFIX)$(DATA) -MANDIR = $(DATADIR)/man -LICENSEDIR = $(DATADIR)/licenses +.POSIX: -PKGNAME = metar -COMMAND = metar +PREFIX = /usr/local +MANPREFIX = $(PREFIX)/share/man all: -clean: + @: install: - mkdir -p -- "$(DESTDIR)$(BINDIR)" - mkdir -p -- "$(DESTDIR)$(MANDIR)/man1" - mkdir -p -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" - install -m755 metar "$(DESTDIR)$(BINDIR)/$(COMMAND)" - install -m644 COPYING "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/COPYING" - install -m644 metar.1 "$(DESTDIR)$(MANDIR)/man1/$(COMMAND).1" + 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 -- "$(DESTDIR)$(BINDIR)/$(COMMAND)" - -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/COPYING" - -rm -- "$(DESTDIR)$(MANDIR)/man1/$(COMMAND).1" - -rmdir -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/metar" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/metar.1" + -rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/metar" -.PHONY: all clean install uninstall +clean: + @: +.PHONY: all clean install uninstall |