Makefile.am 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
  2. ACLOCAL_AMFLAGS = -I m4
  3. INCLUDES = $(all_includes) -I$(top_srcdir)/include
  4. SUBDIRS = include src
  5. pkgconfigdir = $(libdir)/pkgconfig
  6. pkgconfig_DATA = librtlsdr.pc
  7. BUILT_SOURCES = $(top_srcdir)/.version
  8. $(top_srcdir)/.version:
  9. echo $(VERSION) > $@-t && mv $@-t $@
  10. dist-hook:
  11. echo $(VERSION) > $(distdir)/.tarball-version
  12. install-udev-rules:
  13. $(INSTALL_DATA) rtl-sdr.rules /etc/udev/rules.d
  14. uninstall-udev-rules:
  15. rm -rf /etc/udev/rules.d/rtl-sdr.rules
  16. EXTRA_DIST = git-version-gen
  17. if HAVE_DOXYGEN
  18. pkgdocdir=$(docdir)/$(PACKAGE)-$(VERSION)
  19. doc_htmldir=$(pkgdocdir)/html
  20. doc_html_DATA = $(top_builddir)/doc/html.tar
  21. $(doc_html_DATA): $(top_builddir)/doc/html/index.html
  22. cd $(top_builddir)/doc && tar cf html.tar html
  23. $(top_builddir)/doc/html/index.html: $(SOURCES) Doxyfile
  24. @rm -rf doc
  25. mkdir -p doc
  26. $(DOXYGEN) Doxyfile
  27. install-data-hook:
  28. cd $(DESTDIR)$(doc_htmldir) && tar xf html.tar --strip-components 1 && rm -f html.tar
  29. uninstall-hook:
  30. cd $(DESTDIR) && rm -rf $(doc_htmldir)
  31. DX_CLEAN = doc/{html,latex}/* doc/html.tar
  32. endif
  33. MOSTLYCLEANFILES = $(DX_CLEAN)