Add a pkg-config template

Fixes https://todo.sr.ht/~sircmpwn/scdoc/23
master
emersion 6 years ago committed by Drew DeVault
parent acb0f64a7b
commit d7a1f4a090
  1. 1
      .gitignore
  2. 7
      Makefile
  3. 4
      scdoc.pc.in

1
.gitignore vendored

@ -2,3 +2,4 @@
scdoc
scdoc.1
scdoc.5
scdoc.pc

@ -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)

@ -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@
Loading…
Cancel
Save