forked from PowerDNS/pdns
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dnsdist: Fix the build process for the YAML configuration
- Loading branch information
Showing
5 changed files
with
40 additions
and
505 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
EXTRA_DIST = \ | ||
settings-generator.py \ | ||
dnsdist-rules-definitions.yml \ | ||
rust/src/lib.rs | ||
|
||
all: | ||
all: rust/src/lib.rs | ||
|
||
BUILT_SOURCES=rust/src/lib.rs | ||
|
||
rust/src/lib%rs: settings-generator.py dnsdist-rules-definitions.yml | ||
@if test "$(PYTHON)" = ":"; then echo "Settings definitions have changed, python is needed to regenerate the related settings files but python was not found. Please install python and re-run configure"; exit 1; fi | ||
@if ! $(PYTHON) --version | grep -q "Python 3"; then echo $(PYTHON) should be at least version 3. Please install python 3 and re-run configure; exit 1; fi | ||
$(MAKE) -C rust clean | ||
(cd ${srcdir} && $(PYTHON) settings-generator.py dnsdist-rules-definitions.yml) | ||
|
||
clean-local: | ||
rm -f rust/src/lib.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.