diff options
author | ꙮ <ymir@ulthar.xyz> | 2024-04-11 19:36:03 -0700 |
---|---|---|
committer | rodarima <rodarima@gmail.com> | 2024-05-08 21:46:17 +0200 |
commit | 7e75090122fdee07aa9d443c8f6982839d68c0ed (patch) | |
tree | d6a534596480fc1602cf0a78668f03b8754b3ebc /Makefile | |
parent | ac3412cbccaa1320ffc939c415bdacbe549e8c70 (diff) |
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/
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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)' >> $< |