1LIBUSB_SRC_DIR = @top_srcdir@/libusb 2EXCLUDED_FILES = hotplug.h libusbi.h version.h version_nano.h 3LIBUSB_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 8@DOXYGEN_HTMLDIR@: doxygen.cfg @top_srcdir@/doc/libusb.png $(LIBUSB_DOC_SRC) 9 doxygen $< 10 11sfurl = web.sourceforge.net:/home/project-web/libusb/htdocs 12docs-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 23