12345678910111213141516171819202122232425
  1. SUBDIRS = src
  2. dist_man1_MANS = light.1
  3. doc_DATA = README.md LICENSE ChangeLog.md
  4. EXTRA_DIST = README.md LICENSE ChangeLog.md
  5. if UDEV
  6. udev_DATA = 90-backlight.rules
  7. EXTRA_DIST += $(top_srcdir)/90-backlight.rules
  8. endif
  9. #
  10. # Target to run when building a release
  11. #
  12. release: distcheck
  13. @for file in $(DIST_ARCHIVES); do \
  14. md5sum $$file > ../$$file.md5; \
  15. done
  16. @mv $(DIST_ARCHIVES) ../
  17. @echo
  18. @echo "Resulting release files:"
  19. @echo "================================================================="
  20. @for file in $(DIST_ARCHIVES); do \
  21. printf "$$file \tDistribution tarball\n"; \
  22. printf "$$file.md5\t"; cat ../$$file.md5 | cut -f1 -d' '; \
  23. done