From 4ba2121d7a347fd8fb25e4d66f96ea98f234cda8 Mon Sep 17 00:00:00 2001 From: strafe Date: Wed, 28 Feb 2024 02:13:04 +0000 Subject: [PATCH] Fix make install on macOS macOS uses the BSD version of sed that unlike the GNU version, requires the backup suffix to be supplied when using -i or -I. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6f7b5fc..ad1d72d 100644 --- a/Makefile +++ b/Makefile @@ -49,13 +49,14 @@ rirc: config.h $(OBJ) $(MBEDTLS) $(CC) $(LDFLAGS) -pthread $(OBJ) $(MBEDTLS) -o $@ install: rirc - @sed -i "s/VERSION/$(VERSION)/g" rirc.1 + @sed -i.bak "s/VERSION/$(VERSION)/g" rirc.1 mkdir -p $(PATH_BIN) mkdir -p $(PATH_MAN) cp -f rirc $(PATH_BIN) cp -f rirc.1 $(PATH_MAN) chmod 755 $(PATH_BIN)/rirc chmod 644 $(PATH_MAN)/rirc.1 + rm -f rirc.1.bak uninstall: rm -f $(PATH_BIN)/rirc