summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorJames Turner <james@calminferno.net>2017-02-07 18:49:52 -0500
committerJames Turner <james@calminferno.net>2017-02-07 18:49:52 -0500
commita229550437b42fcddd9b79bf059a28130b2e74b1 (patch)
treec683defd23c1429df169e9284443b5c00e91c649 /mk
parent545d75324d8ad1d9f8f9977b0911e8e9e0704674 (diff)
downloadmc-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')
-rw-r--r--mk/c.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/mk/c.mk b/mk/c.mk
index d5eead4..e75f1e2 100644
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -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