diff options
author | James Turner <james@calminferno.net> | 2017-02-07 18:49:52 -0500 |
---|---|---|
committer | James Turner <james@calminferno.net> | 2017-02-07 18:49:52 -0500 |
commit | a229550437b42fcddd9b79bf059a28130b2e74b1 (patch) | |
tree | c683defd23c1429df169e9284443b5c00e91c649 /mk/c.mk | |
parent | 545d75324d8ad1d9f8f9977b0911e8e9e0704674 (diff) | |
download | mc-a229550437b42fcddd9b79bf059a28130b2e74b1.tar.gz |
Remove the need for local OpenBSD patches.
OpenBSD uses /usr/local/man not /usr/local/share/man. Create a new
INST_MAN variable that can be used to control the man path and move
Manpath into the OS specific settings.
Diffstat (limited to 'mk/c.mk')
-rw-r--r-- | mk/c.mk | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -81,9 +81,9 @@ install: subdirs-install $(INSTBIN) $(INSTLIB) $(INSTHDR) $(INSTPKG) $(EXTRAINST done @for i in $(INSTMAN); do \ sect="$${i##*.}"; \ - echo install -m 644 $$i $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$${sect}); \ - mkdir -p $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$${sect}); \ - install -m 644 $$i $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$${sect}); \ + echo install -m 644 $$i $(abspath $(DESTDIR)/$(INST_MAN)$${sect}); \ + mkdir -p $(abspath $(DESTDIR)/$(INST_MAN)$${sect}); \ + install -m 644 $$i $(abspath $(DESTDIR)/$(INST_MAN)$${sect}); \ done subdirs-uninstall: @@ -112,8 +112,8 @@ uninstall: subdirs-uninstall $(EXTRAUNINSTALL) done @for i in $(INSTMAN); do \ sect="$${i##*.}" \ - echo rm -f $$i $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$${sect}/$$i); \ - rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/share/man/man$${sect}/$$i); \ + echo rm -f $$i $(abspath $(DESTDIR)/$(INST_MAN)$${sect}/$$i); \ + rm -f $(abspath $(DESTDIR)/$(INST_MAN)$${sect}/$$i); \ done %.o: %.c $(GENHDR) .deps/stamp |