nut/scripts/augeas/Makefile.am
2011-01-26 10:35:08 +01:00

16 lines
602 B
Makefile

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:
@if python -c pass; then \
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