mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00

This wrapper has a few standard target for convinience, mostly forwarding them build/Makefile. Also adding a .gitignore to let git skip the build/ directory.
28 lines
745 B
Makefile
28 lines
745 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
|
|
( cd $(BUILD) && make clean )
|
|
|
|
dist: configured
|
|
( cd $(BUILD) && make package_source )
|
|
|
|
distclean:
|
|
rm -rf $(BUILD)
|
|
|
|
.PHONY : configured
|
|
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 )
|