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

commit 71191da8362e81e3d4688ae1823dc68037998bca
parent e971203b15306dd7492a23830833eb32fdee44ea
Author: Timothée Floure <>
Date:   Mon, 25 Jun 2018 15:45:17 +0200

"distribution-friendly" Makefile


As discussed a few days ago on #cmpwn, here a simple patch making
scdoc's Makefile a bit more distribution-friendly.

I don't like the enforced `-static` and would prefer it to be set by the
user if they want it (distributions don't), but that's your call.


PS: scdoc is now packaged in Fedora :-)

Timothée Floure

MMakefile | 13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,12 +1,11 @@ VERSION=1.3.4 -CFLAGS=-g -DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter -LDFLAGS=-static -INCLUDE=-Iinclude -PREFIX=/usr/local -DESTDIR= +CFLAGS+=-g -DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter +LDFLAGS+=-static +INCLUDE+=-Iinclude +PREFIX?=/usr/local _INSTDIR=$(DESTDIR)$(PREFIX) -BINDIR=$(_INSTDIR)/bin -MANDIR=$(_INSTDIR)/share/man +BINDIR?=$(_INSTDIR)/bin +MANDIR?=$(_INSTDIR)/share/man HOST_SCDOC=./scdoc .DEFAULT_GOAL=all