scdoc2mdoc

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

commit d7a1f4a090e07a09249e789770b4f53b0011f14d
parent acb0f64a7b733a73329e9a60d032b7c338d01359
Author: emersion <contact@emersion.fr>
Date:   Fri,  1 Mar 2019 20:46:56 +0000

Add a pkg-config template

Fixes https://todo.sr.ht/~sircmpwn/scdoc/23

Diffstat:
M.gitignore | 1+
MMakefile | 7+++++--
Dscdoc.pc | 7-------
Ascdoc.pc.in | 7+++++++
4 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -2,3 +2,4 @@ scdoc scdoc.1 scdoc.5 +scdoc.pc diff --git a/Makefile b/Makefile @@ -35,10 +35,13 @@ scdoc.1: scdoc.1.scd $(HOST_SCDOC) scdoc.5: scdoc.5.scd $(HOST_SCDOC) $(HOST_SCDOC) < $< > $@ -all: scdoc scdoc.1 scdoc.5 +scdoc.pc: scdoc.pc.in + sed -e 's:@prefix@:$(PREFIX):g' -e 's:@version@:$(VERSION):g' < $< > $@ + +all: scdoc scdoc.1 scdoc.5 scdoc.pc clean: - rm -rf $(OUTDIR) scdoc scdoc.1 scdoc.5 + rm -rf $(OUTDIR) scdoc scdoc.1 scdoc.5 scdoc.pc install: all mkdir -p $(BINDIR) $(MANDIR)/man1 $(MANDIR)/man5 $(PCDIR) diff --git a/scdoc.pc b/scdoc.pc @@ -1,7 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -scdoc=${exec_prefix}/bin/scdoc - -Name: scdoc -Description: Man page generator -Version: 1.9.2 diff --git a/scdoc.pc.in b/scdoc.pc.in @@ -0,0 +1,7 @@ +prefix=@prefix@ +exec_prefix=${prefix} +scdoc=${exec_prefix}/bin/scdoc + +Name: scdoc +Description: Man page generator +Version: @version@