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

index 9c2d472..1a7a550 100644 (file)
@@ -88,8 +88,16 @@ install: all
        mkdir -p "$(ETCDIR)"
        cp "$(RESOURCESDIR)/olsrd.sgw.speed.conf" "$(ETCDIR)"
        $(STRIP) "$(LIBDIR)/$(PLUGIN_FULLNAME)"
+ifneq ($(DOCDIR_OLSRD),)
+       mkdir -p "$(DOCDIR_OLSRD)"
+       cp "README_SGWDYNSPEED" "$(DOCDIR_OLSRD)"
+endif
 
 uninstall:
+ifneq ($(DOCDIR_OLSRD),)
+       rm -f "$(DOCDIR_OLSRD)/README_SGWDYNSPEED"
+       rmdir -p --ignore-fail-on-non-empty "$(DOCDIR_OLSRD)"
+endif
        rm -f "$(LIBDIR)/lib$(PLUGIN_NAME).so" "$(LIBDIR)/$(PLUGIN_NAME)" "$(ETCDIR)/olsrd.sgw.speed.conf"
        $(UNINSTALL_LIB)
        rmdir -v -p --ignore-fail-on-non-empty "$(LIBDIR)" "$(ETCDIR)"