mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00
New Makefile wrapper in top-level directory.
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.
This commit is contained in:
parent
2ee218fec8
commit
4714af9657
2 changed files with 29 additions and 0 deletions
28
Makefile
Normal file
28
Makefile
Normal file
|
@ -0,0 +1,28 @@
|
|||
#
|
||||
# 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 )
|
Loading…
Add table
Add a link
Reference in a new issue