hautils

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 4c35f03fc6bf45a28326c48cd9a94b02f31c0e5b
parent b60849770e3d78ebdead712d71ab8aeca61b437c
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu,  8 Jul 2021 13:04:11 -0400

Streamline makefile

Diffstat:
M.gitignore | 4+++-
MMakefile | 31++++++++++++++-----------------
Rcmd/cat.ha -> cat.ha | 0
Rcmd/false.ha -> false.ha | 0
Rcmd/true.ha -> true.ha | 0
5 files changed, 17 insertions(+), 18 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1 +1,3 @@ -bin +cat +false +true diff --git a/Makefile b/Makefile @@ -1,26 +1,23 @@ .POSIX: .SUFFIXES: -OUTDIR=bin HARE=hare -all: \ - $(OUTDIR)/cat \ - $(OUTDIR)/false \ - $(OUTDIR)/true +utils=\ + cat \ + false \ + true -$(OUTDIR)/cat: cmd/cat.ha main/main.ha - @mkdir -p $(OUTDIR) - $(HARE) build -o $@ $< - -$(OUTDIR)/false: cmd/false.ha - @mkdir -p $(OUTDIR) - $(HARE) build -o $@ $< - -$(OUTDIR)/true: cmd/true.ha - @mkdir -p $(OUTDIR) - $(HARE) build -o $@ $< +all: $(utils) clean: - rm -rf $(OUTDIR) + rm -f $(utils) .PHONY: all clean + +.SUFFIXES: .ha +.ha: + $(HARE) build -o $@ $< + +cat: cat.ha main/main.ha +false: false.ha +true: true.ha diff --git a/cmd/cat.ha b/cat.ha diff --git a/cmd/false.ha b/false.ha diff --git a/cmd/true.ha b/true.ha