bore

basic core utilities (PD)
git clone git://bvnf.space/bore.git
Log | Files | Refs | README

commit 689b713397599ca098850662a91cad236a513e62
parent b6704f6f1e3709bdbd521c266280179da2717f8d
Author: phoebos <ben@bvnf.space>
Date:   Tue, 17 May 2022 17:40:30 +0100

Makefile: simplify build

don't put executables into a subdir, it's too messy across make
implementations.

Diffstat:
M.gitignore | 18+++++++++++++++++-
MMakefile | 11++++-------
2 files changed, 21 insertions(+), 8 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1 +1,17 @@ -bin +cat +echo +ed +false +grep +head +ls +mkdir +nice +pwd +rmdir +sort +tee +true +tty +uname +wc diff --git a/Makefile b/Makefile @@ -25,13 +25,10 @@ XLDFLAGS = $(LDFLAGS) .PHONY: clean -all: bin $(BINS:%=bin/%) +all: $(BINS) -bin: - mkdir -p bin - -$(BINS:%=bin/%): $(BINS:=.c) - $(CC) $(XCFLAGS) $(XLDFLAGS) -o $@ $(@:bin/%=%.c) +.c: + $(CC) $(XCFLAGS) $(XLDFLAGS) -o $@ $< clean: - rm -fr bin + rm -f $(BINS)