logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: ed9f79677cc7cda1cf857b59bb4559ea1d4907a9
parent e8c67c47e2f5696768f3c7d044225aeb0febf070
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu,  1 Dec 2022 03:56:34 +0100

Makefile: Fix $< not being set on FreeBSD

This variable is a mess anyway

Diffstat:

MMakefile10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -54,20 +54,20 @@ format: $(C_SOURCES) cmd/lolcat: cmd/lolcat.c Makefile rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno} - $(CC) -std=c99 $(CFLAGS) -o $@ $< -lm $(LDFLAGS) + $(CC) -std=c99 $(CFLAGS) -o $@ cmd/lolcat.c -lm $(LDFLAGS) cmd/xcd: cmd/xcd.c Makefile rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno} - $(CC) -std=c99 $(CFLAGS) -o $@ $< -lm $(LDFLAGS) + $(CC) -std=c99 $(CFLAGS) -o $@ cmd/xcd.c -lm $(LDFLAGS) cmd/humanize: cmd/humanize.c Makefile rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno} - $(CC) -std=c99 $(CFLAGS) $(LIBBSD_CFLAGS) -o $@ $< $(LIBBSD_LIBS) $(LDFLAGS) + $(CC) -std=c99 $(CFLAGS) $(LIBBSD_CFLAGS) -o $@ cmd/humanize.c $(LIBBSD_LIBS) $(LDFLAGS) cmd/strings: cmd/strings.c Makefile rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno} - $(CC) -std=c99 $(CFLAGS) $(LIBBSD_CFLAGS) -o $@ $< $(LIBBSD_LIBS) $(LDFLAGS) + $(CC) -std=c99 $(CFLAGS) $(LIBBSD_CFLAGS) -o $@ cmd/strings.c $(LIBBSD_LIBS) $(LDFLAGS) cmd/sleep: cmd/sleep.c Makefile rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno} - $(CC) -std=c99 $(CFLAGS) $(LIBBSD_CFLAGS) -o $@ $< $(LIBBSD_LIBS) $(LDFLAGS) + $(CC) -std=c99 $(CFLAGS) $(LIBBSD_CFLAGS) -o $@ cmd/sleep.c $(LIBBSD_LIBS) $(LDFLAGS)