Skip to content

Instantly share code, notes, and snippets.

@wwahammy
Last active August 29, 2015 14:13
Show Gist options
  • Save wwahammy/67909bed9f62ea6a4c9d to your computer and use it in GitHub Desktop.
Save wwahammy/67909bed9f62ea6a4c9d to your computer and use it in GitHub Desktop.
Makefile for learning_package
include $(TOPDIR)/rules.mk
PKG_NAME:=learning_webpage
PKG_VERSION:=1
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_MAINTAINER:=Your name <[email protected]>
PKG_LICENSE:=ISC
include $(INCLUDE_DIR)/package.mk
define Package/learning_webpage/default
CATEGORY:=Network
SUBMENU:=Web Servers/Proxies
TITLE:=Webpage for package creation
endef
define Package/learning_webpage
$(Package/learning_webpage/default)
DEPENDS:=+uhttpd
endef
define Package/learning_webpage/description
A web page used for illustrating package creation
endef
define Package/learning_webpage/install
$(CP) ./files/* $(1)/
endef
define Build/Compile
true
endef
$(eval $(call BuildPackage,learning_webpage))
@karlp
Copy link

karlp commented Jan 28, 2015

You can replace all but the first "learning_webpage" with $(PKG_NAME) too, fwiw,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment