olsrd: install extra (documentation) files
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 17 May 2019 15:58:59 +0000 (17:58 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 17 Jun 2019 21:04:50 +0000 (23:04 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Makefile

index cb17278..cd08148 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -194,8 +194,20 @@ endif
 ifneq ($(RCDIR),)
                cp $(RCFILE) $(RCDIR)/olsrd
 endif
+ifneq ($(DOCDIR_OLSRD),)
+               mkdir -p "$(DOCDIR_OLSRD)"
+               cp -t "$(DOCDIR_OLSRD)" "CHANGELOG" "README-Olsr-Extensions" \
+                 "README-LINUX_NL80211.txt" "files/olsrd.conf.default" \
+                 "files/olsrd.conf.default.txt" "license.txt"
+endif
 
 uninstall_olsrd:       uninstall_bin
+ifneq ($(DOCDIR_OLSRD),)
+               rm -f "$(DOCDIR_OLSRD)/CHANGELOG" "$(DOCDIR_OLSRD)/README-Olsr-Extensions" \
+                 "$(DOCDIR_OLSRD)/README-LINUX_NL80211.txt" "$(DOCDIR_OLSRD)/olsrd.conf.default" \
+                 "$(DOCDIR_OLSRD)/olsrd.conf.default.txt" "$(DOCDIR_OLSRD)/license.txt"
+               rmdir -p --ignore-fail-on-non-empty "$(DOCDIR_OLSRD)"
+endif
 ifneq ($(MANDIR),)
                rm -f $(MANDIR)/man5/$(CFGNAME).5.gz
                rmdir -p $(MANDIR)/man5/ || true