Skip to content

Commit

Permalink
lime-docs merge in the same Makefile, change docs location
Browse files Browse the repository at this point in the history
  • Loading branch information
ilario committed Jun 1, 2017
1 parent 0bda0e7 commit ab829b1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 49 deletions.
46 changes: 0 additions & 46 deletions packages/lime-docs-minimal/Makefile

This file was deleted.

25 changes: 22 additions & 3 deletions packages/lime-docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,38 @@ define Package/$(PKG_NAME)
URL:=http://libremesh.org/docs/
endef

define Package/$(PKG_NAME)-minimal
CATEGORY:=LiMe
TITLE:=LibreMesh minimal documentation
MAINTAINER:=Ilario Gelmetti <ilario@tgnu.ml>
URL:=http://libremesh.org/docs/config.html
endef

define Package/$(PKG_NAME)/description
Offline documentation for LibreMesh firmware,
includes lime-docs-minimal contents
endef

define Package/$(PKG_NAME)-minimal/description
Minimal offline documentation for LibreMesh firmware containing
just an expaination of the main config file.
endef

define Build/Compile
endef

define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/docs/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/*txt $(1)/docs/
@cp -r $(PKG_BUILD_DIR)/hardware/ $(1)/docs/
$(INSTALL_DIR) $(1)/www/docs/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/*txt $(1)/www/docs/
@ln -s /www/docs $(1)/docs
endef

define Package/$(PKG_NAME)-minimal/install
$(INSTALL_DIR) $(1)/www/docs/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/config.txt $(1)/www/docs/
@ln -s /www/docs $(1)/docs
endef

$(eval $(call BuildPackage,lime-docs))
$(eval $(call BuildPackage,lime-docs-minimal))

0 comments on commit ab829b1

Please sign in to comment.