blob: 411d172d57ec7bd4b4ae15553bfba8d60e9ca9d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|