Files
plugins/Makefile
T
Franco Fichtner 64d1af52e1 Framework: hooray, the `upgrade' target is here \o/
Repair a bit of my previous code splatter while here.
2017-08-15 18:55:53 +02:00

32 lines
655 B
Makefile

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