Chris Dickens | 4a5540a | 2020-03-25 00:09:26 -0700 | [diff] [blame] | 1 | LIBUSB_SRC_DIR = @top_srcdir@/libusb |
Chris Dickens | 32a2206 | 2021-01-20 11:18:35 -0800 | [diff] [blame] | 2 | EXCLUDED_FILES = libusbi.h version.h version_nano.h |
Chris Dickens | 4a5540a | 2020-03-25 00:09:26 -0700 | [diff] [blame] | 3 | LIBUSB_SRC = $(wildcard $(LIBUSB_SRC_DIR)/*.c) $(wildcard $(LIBUSB_SRC_DIR)/*.h) |
| 4 | LIBUSB_DOC_SRC = $(filter-out $(addprefix $(LIBUSB_SRC_DIR)/,$(EXCLUDED_FILES)),$(LIBUSB_SRC)) |
| 5 | |
| 6 | docs: @DOXYGEN_HTMLDIR@ |
| 7 | |
Aurelien Jarno | 442305e | 2020-12-02 23:46:40 +0100 | [diff] [blame] | 8 | @DOXYGEN_HTMLDIR@: doxygen.cfg @top_srcdir@/doc/libusb.png $(LIBUSB_DOC_SRC) |
Chris Dickens | 4a5540a | 2020-03-25 00:09:26 -0700 | [diff] [blame] | 9 | doxygen $< |
| 10 | |
Chris Dickens | 60c8395 | 2020-04-09 12:30:57 -0700 | [diff] [blame] | 11 | sfurl = web.sourceforge.net:/home/project-web/libusb/htdocs |
Chris Dickens | 4a5540a | 2020-03-25 00:09:26 -0700 | [diff] [blame] | 12 | docs-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 | |
| 19 | clean: |
| 20 | rm -rf @DOXYGEN_HTMLDIR@ |
| 21 | |
| 22 | .PHONY: clean docs docs-upload |