~bitfehler/public-inbox

Make Makefile POSIX-compliant v1 PROPOSED

Grigory Kirillov: 1
 Make Makefile POSIX-compliant

 1 files changed, 9 insertions(+), 8 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~bitfehler/public-inbox/patches/35659/mbox | git am -3
Learn more about email & git

[PATCH] Make Makefile POSIX-compliant Export this patch

This makes Makefile POSIX-compliant by getting rid of non-standard
operators. When there's a need for an user to build project with
values from environment variables, they can pass -e flag to make.
---
 Makefile | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/Makefile b/Makefile
index d4a9da4..1636f09 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,13 @@
.POSIX:
VERSION=1.0.0
CFLAGS?=-g
MAINFLAGS:=-DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter
LDFLAGS+=-static
INCLUDE+=-Iinclude
PREFIX?=/usr/local
BINDIR?=$(PREFIX)/bin
MANDIR?=$(PREFIX)/share/man
PCDIR?=$(PREFIX)/share/pkgconfig
CFLAGS=-g
MAINFLAGS=-DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter
LDFLAGS=-static
INCLUDE=-Iinclude
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man
PCDIR=$(PREFIX)/share/pkgconfig
OUTDIR=.build
.DEFAULT_GOAL=all

-- 
2.37.3