1 AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
2 ACLOCAL_AMFLAGS = -I m4
4 INCLUDES = $(all_includes) -I$(top_srcdir)/include
7 pkgconfigdir = $(libdir)/pkgconfig
8 pkgconfig_DATA = librtlsdr.pc
10 BUILT_SOURCES = $(top_srcdir)/.version
11 $(top_srcdir)/.version:
12 echo $(VERSION) > $@-t && mv $@-t $@
14 echo $(VERSION) > $(distdir)/.tarball-version
17 $(INSTALL_DATA) rtl-sdr.rules /etc/udev/rules.d
20 rm -rf /etc/udev/rules.d/rtl-sdr.rules
22 EXTRA_DIST = git-version-gen
26 pkgdocdir=$(docdir)/$(PACKAGE)-$(VERSION)
27 doc_htmldir=$(pkgdocdir)/html
29 doc_html_DATA = $(top_builddir)/doc/html.tar
31 $(doc_html_DATA): $(top_builddir)/doc/html/index.html
32 cd $(top_builddir)/doc && tar cf html.tar html
34 $(top_builddir)/doc/html/index.html: $(SOURCES) Doxyfile
40 cd $(DESTDIR)$(doc_htmldir) && tar xf html.tar --strip-components 1 && rm -f html.tar
43 cd $(DESTDIR) && rm -rf $(doc_htmldir)
45 DX_CLEAN = doc/{html,latex}/* doc/html.tar
49 MOSTLYCLEANFILES = $(DX_CLEAN)