npm

Nihal's Password Manager
git clone git://git.nihaljere.xyz/npm
Log | Files | Refs | README | LICENSE

commit 254671c6e1b9a5e2fda28ace48b24feee32e46a0
parent 0258fb173a481c0033c13a290bd955921da2174e
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Sat,  1 Jul 2023 14:50:19 -0500

Makefile: work with bmake

Diffstat:
MMakefile | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -12,7 +12,7 @@ all: npm-core npm-agent npmc $(OBJ): config.h config.h: config.def.h - cp $< $@ + cp config.def.h $@ npm-core: npm-core.o monocypher.o util.o $(CC) $(LDFLAGS) npm-core.o monocypher.o util.o -o $@ @@ -24,10 +24,11 @@ npmc: npmc.o util.o $(CC) $(LDFLAGS) npmc.o util.o -o $@ npm-agent.o: npm-agent.c - $(CC) '-DNPM_CORE=$(NPM_CORE)' $(CFLAGS) -c $< -o $@ + $(CC) '-DNPM_CORE=$(NPM_CORE)' $(CFLAGS) -c npm-agent.c -o $@ install: - install -Dm755 -t $(DESTDIR)$(PREFIX)/bin npm npm-core npmc npm-agent + mkdir -p $(DESTDIR)$(PREFIX)/bin + install -Dm755 npm npm-core npmc npm-agent $(DESTDIR)$(PREFIX)/bin clean: rm -f $(OBJ) $(EXE)