blob: 6568c4ff1c47273e310b22577af238a73b804622 [file] [log] [blame]
Chris Dickens4a5540a2020-03-25 00:09:26 -07001LIBUSB_SRC_DIR = @top_srcdir@/libusb
Chris Dickens32a22062021-01-20 11:18:35 -08002EXCLUDED_FILES = libusbi.h version.h version_nano.h
Chris Dickens4a5540a2020-03-25 00:09:26 -07003LIBUSB_SRC = $(wildcard $(LIBUSB_SRC_DIR)/*.c) $(wildcard $(LIBUSB_SRC_DIR)/*.h)
4LIBUSB_DOC_SRC = $(filter-out $(addprefix $(LIBUSB_SRC_DIR)/,$(EXCLUDED_FILES)),$(LIBUSB_SRC))
5
6docs: @DOXYGEN_HTMLDIR@
7
Aurelien Jarno442305e2020-12-02 23:46:40 +01008@DOXYGEN_HTMLDIR@: doxygen.cfg @top_srcdir@/doc/libusb.png $(LIBUSB_DOC_SRC)
Chris Dickens4a5540a2020-03-25 00:09:26 -07009 doxygen $<
10
Chris Dickens60c83952020-04-09 12:30:57 -070011sfurl = web.sourceforge.net:/home/project-web/libusb/htdocs
Chris Dickens4a5540a2020-03-25 00:09:26 -070012docs-upload: @DOXYGEN_HTMLDIR@
13 if [ -z "$$SF_USER" ]; then \
14 rsync -rv --delete $< $(sfurl); \
15 else \
16 rsync -rv --delete $< $$SF_USER@$(sfurl); \
17 fi
18
19clean:
20 rm -rf @DOXYGEN_HTMLDIR@
21
22.PHONY: clean docs docs-upload