mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-11-10 04:37:37 +01:00
8e9d4e6f2a
During "make uninstall", the documentatin was not deleted properly, if DESTDIR was used. The existing commands expanded to: make[3]: Entering directory '/home/osmocom-build/jenkins/workspace/master-rtl-sdr/a1/default/a2/default/a3/default/label/osmocom-master-debian9/librtlsdr-0.5.4.5-5c30/_build/sub' cd /tmp/am-dc-24621/ && rm -rf /home/osmocom-build/jenkins/workspace/master-rtl-sdr/a1/default/a2/default/a3/default/label/osmocom-master-debian9/librtlsdr-0.5.4.5-5c30/_inst/share/doc/librtlsdr/librtlsdr-0.5.4.5-5c30/html This fixes the "make distcheck" step of rtl-sdr, and hence should also fix the long-standing jenkins build verification for rtl-sdr at https://jenkins.osmocom.org/jenkins/job/master-rtl-sdr/ Signed-off-by: Harald Welte <laforge@gnumonks.org>
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
INCLUDES = $(all_includes) -I$(top_srcdir)/include
|
|
SUBDIRS = include src
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = librtlsdr.pc
|
|
|
|
BUILT_SOURCES = $(top_srcdir)/.version
|
|
$(top_srcdir)/.version:
|
|
echo $(VERSION) > $@-t && mv $@-t $@
|
|
dist-hook:
|
|
echo $(VERSION) > $(distdir)/.tarball-version
|
|
|
|
install-udev-rules:
|
|
$(INSTALL_DATA) rtl-sdr.rules /etc/udev/rules.d
|
|
|
|
uninstall-udev-rules:
|
|
rm -rf /etc/udev/rules.d/rtl-sdr.rules
|
|
|
|
EXTRA_DIST = git-version-gen .version
|
|
|
|
if HAVE_DOXYGEN
|
|
|
|
pkgdocdir=$(docdir)/$(PACKAGE)-$(VERSION)
|
|
doc_htmldir=$(pkgdocdir)/html
|
|
|
|
doc_html_DATA = $(top_builddir)/doc/html.tar
|
|
|
|
$(doc_html_DATA): $(top_builddir)/doc/html/index.html
|
|
cd $(top_builddir)/doc && tar cf html.tar html
|
|
|
|
$(top_builddir)/doc/html/index.html: $(SOURCES) Doxyfile
|
|
@rm -rf doc
|
|
mkdir -p doc
|
|
$(DOXYGEN) Doxyfile
|
|
|
|
install-data-hook:
|
|
cd $(DESTDIR)$(doc_htmldir) && tar xf html.tar --strip-components 1 && rm -f html.tar
|
|
|
|
uninstall-hook:
|
|
rm -rf $(DESTDIR)/$(doc_htmldir)
|
|
|
|
DX_CLEAN = doc/{html,latex}/* doc/html.tar
|
|
|
|
endif
|
|
|
|
MOSTLYCLEANFILES = $(DX_CLEAN)
|