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