From c914d7a01d18b91c9d1954d471ed4158783bbd4e Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Tue, 20 Dec 2022 18:00:18 -0500 Subject: [PATCH] make: install - remove -D for better cross-platform compatibility use mkdir -p --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f7fe313..0ce0456 100644 --- a/Makefile +++ b/Makefile @@ -55,9 +55,11 @@ nostril: $(HEADERS) $(OBJS) $(ARS) $(CC) $(CFLAGS) $(OBJS) $(ARS) -o $@ install: all - install -Dm644 doc/nostril.1 $(PREFIX)/share/man/man1/nostril.1 - install -Dm755 nostril $(PREFIX)/bin/nostril - install -Dm755 nostril-query $(PREFIX)/bin/nostril-query + mkdir -p $(PREFIX)/share/man/man1 + mkdir -p $(PREFIX)/bin + install -m644 doc/nostril.1 $(PREFIX)/share/man/man1/nostril.1 + install -m755 nostril $(PREFIX)/bin/nostril + install -m755 nostril-query $(PREFIX)/bin/nostril-query config.h: configurator ./configurator > $@