nameservice: install extra (documention) files
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 17 May 2019 16:24:18 +0000 (18:24 +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/nameservice/Makefile

index abe5630..4bbb2ab 100644 (file)
@@ -71,8 +71,16 @@ endif
 install:       $(PLUGIN_FULLNAME)
                $(STRIP) $(PLUGIN_FULLNAME)
                $(INSTALL_LIB)
+ifneq ($(DOCDIR_OLSRD),)
+               mkdir -p "$(DOCDIR_OLSRD)"
+               cp "README_NAMESERVICE" "$(DOCDIR_OLSRD)"
+endif
 
 uninstall:
+ifneq ($(DOCDIR_OLSRD),)
+               rm -f "$(DOCDIR_OLSRD)/README_NAMESERVICE"
+               rmdir -p --ignore-fail-on-non-empty "$(DOCDIR_OLSRD)"
+endif
                $(UNINSTALL_LIB)
 
 clean:         $(REGEX_CLEAN)