- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
Latest commit
37 lines (27 loc) · 770 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (27 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
include$(TOPDIR)/rules.mk
PKG_NAME:=command1
PKG_RELEASE:=1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include$(INCLUDE_DIR)/package.mk
definePackage/command1
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Command1 Controller
DEPENDS:=+libcurl +libpopt
endef
definePackage/command1/description
Utility for controlling Command1 Lights.
To use this tool you must have a 433Mhz transmitter
connected to a GPIO port.
endef
defineBuild/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
definePackage/command1/install
$(INSTALL_DIR)$(1)/bin
$(INSTALL_BIN)$(PKG_BUILD_DIR)/command1 $(1)/bin/
$(INSTALL_DIR)$(1)/etc/init.d
$(INSTALL_BIN)$(PKG_BUILD_DIR)/init $(1)/etc/init.d/command1
endef
$(eval $(call BuildPackage,command1))