From d0231da35b7733540986fe8400a7acef4571f20e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 19 Apr 2016 16:53:45 +0200 Subject: add makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..411d172 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +PREFIX = /usr +BIN = /bin +DATA = /share +BINDIR = $(PREFIX)$(BIN) +DATADIR = $(PREFIX)$(DATA) +MANDIR = $(DATADIR)/man +LICENSEDIR = $(DATADIR)/licenses + +PKGNAME = metar +COMMAND = metar + +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" + +uninstall: + -rm -- "$(DESTDIR)$(BINDIR)/$(COMMAND)" + -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/COPYING" + -rm -- "$(DESTDIR)$(MANDIR)/man1/$(COMMAND).1" + -rmdir -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" + +.PHONY: all clean install uninstall + -- cgit v1.2.3-70-g09d2