libusb/Makefile.am: Remove unnecessary assignments
authorChris Dickens <christopher.a.dickens@gmail.com>
Sat, 28 Mar 2020 02:48:15 +0000 (19:48 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Sat, 28 Mar 2020 02:48:15 +0000 (19:48 -0700)
Remove the unnecessary assignment of EXTRA_DIST. Anything that could end
up in SOURCES is automatically included in the distribution.

Remove the unnecessary assignment of libusb_1_0_la_CFLAGS. AM_CFLAGS is
already the default value, but assigning to the variable makes automake
think that custom CFLAGS are needed and therefore causes a bunch of
pointless additional rules to be generated. As a reference, the
generated Makefile shed 21,560 bytes (from 52,029 bytes to 30,469).

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/Makefile.am
libusb/version_nano.h

index 2942219823d6f7d22fd65d157714e33a32d4ed6c..ad6e8ab6c167ac0698bce7404dbf2e348f144d65 100644 (file)
@@ -33,18 +33,6 @@ OS_WINDOWS_SRC = libusb-1.0.def libusb-1.0.rc \
                 os/windows_usbdk.h os/windows_usbdk.c \
                 os/windows_winusb.h os/windows_winusb.c
 
-EXTRA_DIST = $(POSIX_POLL_SRC) $(POSIX_THREADS_SRC) \
-       $(WINDOWS_POLL_SRC) $(WINDOWS_THREADS_SRC) \
-       $(OS_DARWIN_SRC) \
-       $(OS_HAIKU_SRC) \
-       $(OS_LINUX_SRC) \
-       $(OS_NETBSD_SRC) \
-       $(OS_NULL_SRC) \
-       $(OS_OPENBSD_SRC) \
-       $(OS_SUNOS_SRC) \
-       $(OS_WINDOWS_SRC) \
-       os/linux_netlink.c os/linux_udev.c
-
 if OS_DARWIN
 OS_SRC = $(OS_DARWIN_SRC)
 AM_CFLAGS_EXT = -no-cpp-precomp
@@ -97,7 +85,6 @@ all-local: .libs/libusb-1.0.dll.a
 endif
 endif
 
-libusb_1_0_la_CFLAGS = $(AM_CFLAGS)
 libusb_1_0_la_LDFLAGS = $(LTLDFLAGS)
 libusb_1_0_la_SOURCES = libusbi.h version.h version_nano.h \
        core.c descriptor.c hotplug.h hotplug.c io.c strerror.c sync.c \
index 9dc01faf41007e2f0467c0e092cf3c1a7f0b411c..197f76f5c94415e6e54981ccc05e326133553c0b 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11477
+#define LIBUSB_NANO 11478