From 7e75090122fdee07aa9d443c8f6982839d68c0ed Mon Sep 17 00:00:00 2001 From: ꙮ Date: Thu, 11 Apr 2024 19:36:03 -0700 Subject: Fix makefile to seek out config file Installing dillo from source with the default prefix of /usr/local/ or installing it from ports on FreeBSD puts the config files in /usr/local/etc/ rather than /etc/ --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dab2b10..51036ae 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,10 @@ all: @echo "Use 'make uninstall' to uninstall" $(DPIDRC): - cp /etc/dillo/dpidrc $@ + mkdir -p $(DPI_DIR) + if [ -f /etc/dillo/dpidrc ]; then cp /etc/dillo/dpidrc $@; \ + elif [ -f /usr/local/etc/dillo/dpidrc ]; then cp /usr/local/etc/dillo/dpidrc $@; \ + else echo "Can't find dpidrc, is dillo installed?"; false; fi install-proto: $(DPIDRC) grep -q '^proto.$(NAME)=$(NAME)' $< || echo 'proto.$(NAME)=$(NAME)/$(BIN)' >> $< -- cgit v1.2.3