~sircmpwn/scdoc

d7a1f4a090e07a09249e789770b4f53b0011f14d — emersion 2 years ago acb0f64
Add a pkg-config template

Fixes https://todo.sr.ht/~sircmpwn/scdoc/23
3 files changed, 8 insertions(+), 4 deletions(-)

M .gitignore
M Makefile
R scdoc.pc => scdoc.pc.in
M .gitignore => .gitignore +1 -0
@@ 2,3 2,4 @@
scdoc
scdoc.1
scdoc.5
scdoc.pc

M Makefile => Makefile +5 -2
@@ 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)

R scdoc.pc => scdoc.pc.in +2 -2
@@ 1,7 1,7 @@
prefix=/usr
prefix=@prefix@
exec_prefix=${prefix}
scdoc=${exec_prefix}/bin/scdoc

Name: scdoc
Description: Man page generator
Version: 1.9.2
Version: @version@