xref: /aosp_15_r20/external/ethtool/libmnl/doxygen/Makefile.am (revision 1b481fc3bb1b45d4cf28d1ec12969dc1055f555d)
1if HAVE_DOXYGEN
2doc_srcs = $(shell find $(top_srcdir)/src -name '*.c')
3
4doxyfile.stamp: $(doc_srcs) Makefile.am
5	rm -rf html man
6	doxygen doxygen.cfg >/dev/null
7	$(SHELL) $(top_srcdir)/doxygen/finalize_manpages.sh
8	touch doxyfile.stamp
9
10CLEANFILES = doxyfile.stamp
11
12all-local: doxyfile.stamp
13clean-local:
14	rm -rf $(top_srcdir)/doxygen/man $(top_srcdir)/doxygen/html
15install-data-local:
16	mkdir -p $(DESTDIR)$(mandir)/man3
17	cp --no-dereference --preserve=links,mode,timestamps man/man3/*.3\
18	  $(DESTDIR)$(mandir)/man3/
19
20# make distcheck needs uninstall-local
21uninstall-local:
22	rm -r $(DESTDIR)$(mandir) man html doxyfile.stamp
23endif
24
25EXTRA_DIST = finalize_manpages.sh
26