mirror of
https://github.com/utmapp/libusb.git
synced 2026-12-01 14:01:17 -10:00
When building libusb out-of-tree, ie when running configure from another
directory, building the documentation fails with:
$ make -C doc
make: Entering directory '/tmp/build/doc'
make: *** No rule to make target 'libusb.png', needed by 'api-1.0'. Stop.
make: Leaving directory '/tmp/build/doc'
This has likely been broken by commit 4a5540a925 ("autotools: Fix a number of
issues"). This patch fixes that by prefixing libusb.png with @top_srcdir@/doc.
Signed-off-by: Aurelien Jarno <[email protected]>
23 lines
673 B
Makefile
23 lines
673 B
Makefile
LIBUSB_SRC_DIR = @top_srcdir@/libusb
|
|
EXCLUDED_FILES = hotplug.h libusbi.h version.h version_nano.h
|
|
LIBUSB_SRC = $(wildcard $(LIBUSB_SRC_DIR)/*.c) $(wildcard $(LIBUSB_SRC_DIR)/*.h)
|
|
LIBUSB_DOC_SRC = $(filter-out $(addprefix $(LIBUSB_SRC_DIR)/,$(EXCLUDED_FILES)),$(LIBUSB_SRC))
|
|
|
|
docs: @DOXYGEN_HTMLDIR@
|
|
|
|
@DOXYGEN_HTMLDIR@: doxygen.cfg @top_srcdir@/doc/libusb.png $(LIBUSB_DOC_SRC)
|
|
doxygen $<
|
|
|
|
sfurl = web.sourceforge.net:/home/project-web/libusb/htdocs
|
|
docs-upload: @DOXYGEN_HTMLDIR@
|
|
if [ -z "$$SF_USER" ]; then \
|
|
rsync -rv --delete $< $(sfurl); \
|
|
else \
|
|
rsync -rv --delete $< $$SF_USER@$(sfurl); \
|
|
fi
|
|
|
|
clean:
|
|
rm -rf @DOXYGEN_HTMLDIR@
|
|
|
|
.PHONY: clean docs docs-upload
|