From d05d2fae052e9cba42f26457d79c9d5e819c7a5d Mon Sep 17 00:00:00 2001 From: Aaditya Aryal Date: Tue, 26 Mar 2024 17:19:21 +0545 Subject: [PATCH] Makefile: add a missing build target for npc(1) --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cbfe3a7..c7ff901 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ CC=cc RUSTC=rustc .PHONY: all -all: dj false fop hru intcmp mm rpn scrut str strcmp swab true +all: dj false fop hru intcmp mm npc rpn scrut str strcmp swab true build: # keep build/include until bindgen(1) has stdin support @@ -91,6 +91,12 @@ mm: build/bin/mm build/bin/mm: src/mm.c build $(CC) $(CFLAGS) -o $@ src/mm.c + +.PHONY: npc +npc: build/bin/npc +build/bin/npc: src/npc.c build + $(CC) $(CFLAGAS) -o $@ src/npc.c + .PHONY: rpn rpn: build/bin/rpn build/bin/rpn: src/rpn.rs build build/o/libsysexits.rlib