Makefile.am 988 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. EXTRA_DIST = git-version-gen
  13. if HAVE_DOXYGEN
  14. pkgdocdir=$(docdir)/$(PACKAGE)-$(VERSION)
  15. doc_htmldir=$(pkgdocdir)/html
  16. doc_html_DATA = $(top_builddir)/doc/html.tar
  17. $(doc_html_DATA): $(top_builddir)/doc/html/index.html
  18. cd $(top_builddir)/doc && tar cf html.tar html
  19. $(top_builddir)/doc/html/index.html: $(SOURCES) Doxyfile
  20. @rm -rf doc
  21. mkdir -p doc
  22. $(DOXYGEN) Doxyfile
  23. install-data-hook:
  24. cd $(DESTDIR)$(doc_htmldir) && tar xf html.tar --strip-components 1 && rm -f html.tar
  25. uninstall-hook:
  26. cd $(DESTDIR) && rm -rf $(doc_htmldir)
  27. DX_CLEAN = doc/{html,latex}/* doc/html.tar
  28. endif
  29. MOSTLYCLEANFILES = $(DX_CLEAN)