~adnano/gmnitohtml

gmnitohtml/Makefile -rw-r--r-- 638 bytes
1018ac8dAdnan Maolood Makefile: make POSIX-compliant 2 months ago
                                                                                
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
31
32
33
.POSIX:
.SUFFIXES:

PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man

RM=rm
GO=go
GOFLAGS=

all: gmnitohtml gmnitohtml.1

gmnitohtml: main.go go.mod go.sum
	$(GO) build $(GOFLAGS) -o $@

gmnitohtml.1: gmnitohtml.1.scd
	scdoc < gmnitohtml.1.scd > $@

clean:
	$(RM) gmnitohtml
	$(RM) gmnitohtml.1

install:
	mkdir -m755 -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
	install -m755 gmnitohtml $(DESTDIR)$(BINDIR)/gmnitohtml
	install -m755 gmnitohtml.1 $(DESTDIR)$(MANDIR)/man1/gmnitohtml.1

uninstall:
	$(RM) $(DESTDIR)$(BINDIR)/gmnitohtml
	$(RM) $(DESTDIR)$(MANDIR)/man1/gmnitohtml.1

.PHONY: all clean install uninstall