From 71191da8362e81e3d4688ae1823dc68037998bca Mon Sep 17 00:00:00 2001 From: Timothée Floure Date: Mon, 25 Jun 2018 15:45:17 +0200 Subject: [PATCH] "distribution-friendly" Makefile Hello, 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. Regards, PS: scdoc is now packaged in Fedora :-) -- Timothée Floure --- Makefile | 13 ++++++------- diff --git a/Makefile b/Makefile index 7722e045a26f4ce9bbe4e083ba4612dfc6180918..d6a150ab4decba27277c3032c557b19607c16a26 100644 --- 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 OUTDIR=.build HOST_SCDOC=./scdoc .DEFAULT_GOAL=all -- 2.48.1