autotools: Fix a number of issues
authorChris Dickens <christopher.a.dickens@gmail.com>
Wed, 25 Mar 2020 07:09:26 +0000 (00:09 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Wed, 25 Mar 2020 07:09:26 +0000 (00:09 -0700)
commit4a5540a925e47923ed20b4ea68aabe550dac976d
treef95d0db794b626a025aea4af5b91d8f3e367ef28
parent07d6d3a2a5c415fa0b819ee0bdb48565f444a58a
autotools: Fix a number of issues

Change the name of the project to be what it actually is called
everywhere: libusb-1.0. This allows the public libusb.h header file to
be tracked by automake through pkginclude_HEADERS.

Decouple the doc directory from automake. There aren't any targets that
automake understands, so the build uselessly recurses into the directory.
Update the makefile targets with the correct dependencies so that the
docs aren't regenerated unnecessarily. Update the doxygen config file to
include the version, exclude irrelevant source files and create the
output into 'api-1.0' instead of 'html'. Also fix a deprecation tag for
the libusb_get_port_path() function and add Solaris to the list of
supported platforms.

Fix the 'dist' target. Clean up the README file to remote the GitHub
Markdown and remove the .gitattributes file from the msvc directory.
Add doc/libusb.png to EXTRA_DIST.

Enhance the {dist,doc}-upload targets to look at the SF_USER environment
variable to get the SourceForge username. This allows maintainers (like
me!) to have a local username that is different from their SourceForge
username. Switch the docs-upload recipe to use rsync with --delete to
clean up obsolete files.

Fix the Windows shared library (DLL) targets. The dependencies for the
RC file were incorrect, leading to cases of missed recompilation. The
'all' rule should not be overridden, so define an 'all-local' rule when
necessary. Fix the rule for running dlltool on the just generated DLL so
that it only fires when the correct dependencies change and do not
bother to run the rule when not building a DLL.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
13 files changed:
.gitignore
Makefile.am
README.git
README.md
configure.ac
doc/Makefile.am [deleted file]
doc/Makefile.in [new file with mode: 0644]
doc/doxygen.cfg.in
libusb/Makefile.am
libusb/core.c
libusb/libusb.h
libusb/libusbi.h
libusb/version_nano.h