source: branches/contrib/plugins/example/plugin.mk @ 503

Last change on this file since 503 was 503, checked in by ehem, 7 years ago

Fix spelling error. Targets need to be named after the directory they're in.
Plugins also need to *conditionally* add themselves to $(OPENWRT_PATCH_DIRS).

File size: 562 bytes
Line 
1PLUGIN_$(PLUGIN_NAME)_VERSION:=1.0
2PLUGIN_$(PLUGIN_NAME)_UUID:=128A6A00-29FA-11E2-81C1-0800200C9A66
3
4PLUGIN_TARGETS:=test
5PLUGIN_TARGETS+=register
6PLUGIN_TARGETS+=unregister
7PLUGIN_TARGETS+=clean
8
9ifeq ($(CONFIG_$(PLUGIN_NAME)_ENABLE),y)
10OPENWRT_PATCH_DIRS += $(PLUGINS_DIR)/${plugin_name}/openwrt
11endif
12
13$(call register,${plugin_name},$(PLUGIN_TARGETS))
14
15$(target)/test:
16        @echo "Test $(PLUGIN_NAME)"
17
18$(target)/register:
19        @echo "Register $(PLUGIN_NAME)"
20
21$(target)/unregister:
22        @echo "Unregister $(PLUGIN_NAME)"
23
24$(target)/clean:
25        @echo "Clean $(PLUGIN_NAME)"
26
Note: See TracBrowser for help on using the repository browser.