nut-debian/tools/Makefile.am
2010-03-26 00:20:59 +01:00

15 lines
524 B
Makefile

EXTRA_DIST = nut-usbinfo.pl device-recorder.sh
# only call the USB info script upon "make dist", and if Perl is present
dist-hook:
@if test -x /usr/bin/perl; then \
echo "Regenerating the USB helper files."; \
$(distdir)/nut-usbinfo.pl; \
else \
echo "----------------------------------------------------------------------"; \
echo "Warning: Perl is not available."; \
echo "Skipping the USB helper files regeneration."; \
echo "----------------------------------------------------------------------"; \
fi