scdoc2mdoc

A fork of scdoc to output mdoc(7)
git clone git://git.sgregoratto.me/scdoc2mdoc
Log | Files | Refs | README | LICENSE

commit f5df476feba82ea69e628d2a7fed99c6441f2011
parent a1bf6922c8d4459b295ffdd0f4a41b086917aca4
Author: Mykyta Holubakha <hilobakho@gmail.com>
Date:   Fri, 26 Jan 2018 01:58:21 +0200

Enable cross-compilation

Diffstat:
MMakefile | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -8,6 +8,7 @@ _INSTDIR=$(DESTDIR)$(PREFIX) BINDIR=$(_INSTDIR)/bin MANDIR=$(_INSTDIR)/share/man OUTDIR=.build +HOST_SCDOC=./scdoc .DEFAULT_GOAL=all OBJECTS=\ @@ -28,13 +29,13 @@ $(OUTDIR)/%.o: src/%.c scdoc: $(OBJECTS) $(CC) $(LDFLAGS) -o $@ $^ -scdoc.1: scdoc.1.scd scdoc - ./scdoc < $< > $@ +scdoc.1: scdoc.1.scd $(HOST_SCDOC) + $(HOST_SCDOC) < $< > $@ all: scdoc scdoc.1 clean: - rm -rf $(OUTDIR) scdoc + rm -rf $(OUTDIR) scdoc scdoc.1 install: all install -Dm755 scdoc $(BINDIR)/scdoc