quagga: install extra (documention) files
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 17 May 2019 17:20:44 +0000 (19:20 +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>
lib/quagga/Makefile

index 8a5aec7..57a56a2 100644 (file)
@@ -69,8 +69,18 @@ endif
 install:       $(PLUGIN_FULLNAME)
                $(STRIP) $(PLUGIN_FULLNAME)
                $(INSTALL_LIB)
+ifneq ($(DOCDIR_OLSRD),)
+               mkdir -p "$(DOCDIR_OLSRD)"
+               cp -t "$(DOCDIR_OLSRD)" "README_QUAGGA" "patches/quagga-0.98.6.diff" \
+                 "patches/quagga-0.99.21.diff"
+endif
 
 uninstall:
+ifneq ($(DOCDIR_OLSRD),)
+               rm -f "$(DOCDIR_OLSRD)/README_QUAGGA" "$(DOCDIR_OLSRD)/quagga-0.98.6.diff" \
+                 "$(DOCDIR_OLSRD)/quagga-0.99.21.diff"
+               rmdir -p --ignore-fail-on-non-empty "$(DOCDIR_OLSRD)"
+endif
                $(UNINSTALL_LIB)
 
 clean: