1234567891011121314151617181920212223242526272829303132
  1. SUBDIRS = src
  2. dist_man1_MANS = light.1
  3. doc_DATA = README.md COPYING ChangeLog.md
  4. EXTRA_DIST = README.md COPYING ChangeLog.md
  5. if UDEV
  6. udev_DATA = 90-light-backlight.rules
  7. EXTRA_DIST += $(top_srcdir)/90-light-backlight.rules
  8. endif
  9. # lintian --profile debian -i -I --show-overrides ../$PKG.changes
  10. deb:
  11. dpkg-buildpackage -uc -us -B
  12. #
  13. # Target to run when building a release
  14. #
  15. release: distcheck
  16. @for file in $(DIST_ARCHIVES); do \
  17. md5sum $$file > ../$$file.md5; \
  18. done
  19. @mv $(DIST_ARCHIVES) ../
  20. @echo
  21. @echo "Resulting release files:"
  22. @echo "================================================================="
  23. @for file in $(DIST_ARCHIVES); do \
  24. printf "%-32s Distribution tarball\n" $$file; \
  25. printf "%-32s " $$file.md5; cat ../$$file.md5 | cut -f1 -d' '; \
  26. done
  27. @for file in `cd ..; ls $(PACKAGE)_$(VERSION)*`; do \
  28. printf "%-32s Debian/Ubuntu file\n" $$file; \
  29. done