commit 64b49b0d99a6c0ba1c3a86c8325e42610577d0f3
parent 4a018ec16dc29a53f0cc87d3527c8bd1607ea44d
Author: Emil Engler <me@emilengler.com>
Date: Tue, 3 Nov 2020 19:12:03 +0100
build: Better portability for Makefile
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
@@ -3,13 +3,13 @@ CFLAGS = -g -Wall -Werror -std=c99
PREFIX ?= /usr
datefmt: datefmt.c
- $(CC) $(CFLAGS) $< -o $@
+ $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
install: datefmt
mkdir -p $(PREFIX)/bin
cp datefmt $(PREFIX)/bin
-clean: fake
+clean:
rm -f datefmt
-.PHONY: fake
+.PHONY: install clean