Makefile 827 B

123456789101112131415161718192021222324252627282930
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-status-page-api
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=1
  5. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
  6. include $(INCLUDE_DIR)/package.mk
  7. define Package/gluon-status-page-api
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. TITLE:=API for gluon-status-page
  11. DEPENDS:=+gluon-core +uhttpd +gluon-neighbour-info +gluon-announced +libiwinfo +libjson-c
  12. endef
  13. define Build/Prepare
  14. mkdir -p $(PKG_BUILD_DIR)
  15. $(CP) ./src/* $(PKG_BUILD_DIR)/
  16. endef
  17. define Package/gluon-status-page-api/install
  18. $(INSTALL_DIR) $(1)/lib/gluon/status-page/www/cgi-bin/dyn
  19. $(INSTALL_BIN) $(PKG_BUILD_DIR)/neighbours-batadv $(1)/lib/gluon/status-page/www/cgi-bin/dyn/
  20. $(INSTALL_BIN) $(PKG_BUILD_DIR)/stations $(1)/lib/gluon/status-page/www/cgi-bin/dyn/
  21. $(CP) ./files/* $(1)/
  22. endef
  23. $(eval $(call BuildPackage,gluon-status-page-api))