~adnano/gmnitohtml

1018ac8d81d84540b86195c2b616a46eb186e025 — Adnan Maolood 1 year, 2 months ago 85ce6d8 0.1.2
Makefile: make POSIX-compliant
1 files changed, 10 insertions(+), 9 deletions(-)

M Makefile
M Makefile => Makefile +10 -9
@@ 1,13 1,13 @@
.POSIX:
.SUFFIXES:
.SUFFIXES: .1 .1.scd

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

GO?=go
GOFLAGS?=
RM=rm
GO=go
GOFLAGS=

all: gmnitohtml gmnitohtml.1



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

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

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

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