forked from opnsense/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 655 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (23 loc) · 655 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
PAGER?= less
all:
@cat ${.CURDIR}/README.md | ${PAGER}
CATEGORIES= devel dns net net-mgmt sysutils security www
.for CATEGORY in ${CATEGORIES}
_${CATEGORY}!= ls -1d ${CATEGORY}/*
PLUGIN_DIRS+= ${_${CATEGORY}}
.endfor
list:
.for PLUGIN_DIR in ${PLUGIN_DIRS}
@echo ${PLUGIN_DIR} -- $$(${MAKE} -C ${PLUGIN_DIR} -V PLUGIN_COMMENT)
.endfor
# shared targets that are sane to run from the root directory
TARGETS= lint sweep style style-fix clean
.for TARGET in ${TARGETS}
${TARGET}:
. for PLUGIN_DIR in ${PLUGIN_DIRS}
@${MAKE} -C ${PLUGIN_DIR} ${TARGET}
. endfor
.endfor
license:
@${.CURDIR}/Scripts/license . > ${.CURDIR}/LICENSE
.PHONY: license