commit 209d05f95b572213417db23b005b96d19e916b25 parent 67123e8c1c0aa873367388463fb69176f1581295 Author: Jan Klemkow <j.klemkow@wemelug.de> Date: Sun, 9 Feb 2020 18:24:01 +0100 create config.mk in suckless-style Diffstat:
M | Makefile | | | 9 | +++++---- |
A | config.mk | | | 8 | ++++++++ |
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,13 +1,14 @@ -CFLAGS += -std=c99 -pedantic -Wall -Wextra -g -LDLIBS += -lutil -CPPFLAGS += -D_DEFAULT_SOURCE +include config.mk -.PHONY: all clean test +.PHONY: all clean install test all: scroll clean: rm -f scroll +install: scroll + cp scroll ${BINDIR} + test: scroll # return code passthrough of childs if ! ./scroll true; then exit 1; fi diff --git a/config.mk b/config.mk @@ -0,0 +1,8 @@ +# paths +PREFIX = /usr/local +BINDIR = ${PREFIX}/bin + +CC ?= cc +CFLAGS = -std=c99 -pedantic -Wall -Wextra -g +LDLIBS += -lutil +CPPFLAGS += -D_DEFAULT_SOURCE