mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

- Reorganize top-level 'doc' Makefile target so submodules can easily add their own doc-generating routines to it. e.g. the Bro project makes a placeholder 'doc' target, then adds 'restdoc', 'sphinxdoc'; later Broccoli can add it's own target as a dependency for generating API docs. - Fixed generated docs for BIFs not being organized under a base/ subdirectory like the original source files. - Fixed documentation style for function parameters not applying to functions declared as record fields. - Misc. script documentation tweaks to address warnings given by Sphinx.
39 lines
1,000 B
Makefile
39 lines
1,000 B
Makefile
#
|
|
# A simple static wrapper for a number of standard Makefile targets,
|
|
# mostly just forwarding to build/Makefile. This is provided only for
|
|
# convenience and supports only a subset of what CMake's Makefile
|
|
# to offer. For more, execute that one directly.
|
|
#
|
|
|
|
BUILD=build
|
|
|
|
all: configured
|
|
( cd $(BUILD) && make )
|
|
|
|
install: configured
|
|
( cd $(BUILD) && make install )
|
|
|
|
clean: configured docclean
|
|
( cd $(BUILD) && make clean )
|
|
|
|
doc: configured
|
|
( cd $(BUILD) && make doc )
|
|
|
|
docclean: configured
|
|
( cd $(BUILD) && make docclean )
|
|
|
|
dist:
|
|
@./pkg/make-src-packages
|
|
|
|
bindist:
|
|
@( cd pkg && ( ./make-deb-packages || ./make-mac-packages || \
|
|
./make-rpm-packages ) )
|
|
|
|
distclean:
|
|
rm -rf $(BUILD)
|
|
|
|
configured:
|
|
@test -d $(BUILD) || ( echo "Error: No build/ directory found. Did you run configure?" && exit 1 )
|
|
@test -e $(BUILD)/Makefile || ( echo "Error: No build/Makefile found. Did you run configure?" && exit 1 )
|
|
|
|
.PHONY : all install clean doc docclean dist bindist distclean configured
|