~adnano/gmnitohtml

ref: 85ce6d8207a9112a2baeb1940673333a92660a5b gmnitohtml/Makefile -rw-r--r-- 641 bytes
85ce6d82Adnan Maolood Use self-closing <br> tags 1 year, 6 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
.POSIX:
.SUFFIXES:
.SUFFIXES: .1 .1.scd

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

GO?=go
GOFLAGS?=

all: gmnitohtml gmnitohtml.1

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

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

clean:
	$(RM) gmnitohtml gmnitohtml.1

install: all
	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