2011-01-26 09:35:08 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = gen-nutupsconf-aug.py nutupsconf.aug.tpl \
|
|
|
|
README tests/test_nut.aug
|
|
|
|
|
|
|
|
# only call the script to generate Augeas ups.conf lens upon "make dist",
|
|
|
|
# and if Python is present
|
|
|
|
dist-hook:
|
2012-06-01 13:55:19 +00:00
|
|
|
@if python -c "import re,glob,codecs"; then \
|
2011-01-26 09:35:08 +00:00
|
|
|
echo "Regenerating Augeas ups.conf lens."; \
|
|
|
|
$(distdir)/gen-nutupsconf-aug.py $(distdir)/; \
|
|
|
|
else \
|
|
|
|
echo "----------------------------------------------------------------------"; \
|
|
|
|
echo "Warning: Python is not available."; \
|
|
|
|
echo "Skipping Augeas ups.conf lens regeneration."; \
|
|
|
|
echo "----------------------------------------------------------------------"; \
|
|
|
|
fi
|