Misc: Replace "Mac OS X" with "macOS", its current name
[platform/upstream/libusb.git] / Makefile.am
index 870224a..0155625 100644 (file)
@@ -1,21 +1,28 @@
-AUTOMAKE_OPTIONS = dist-bzip2
-DISTCLEANFILES = ChangeLog fpusb.pc
-EXTRA_DIST = TODO
-SUBDIRS = libfpusb
+AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
+ACLOCAL_AMFLAGS = -I m4
+DISTCLEANFILES = libusb-1.0.pc
+EXTRA_DIST = TODO PORTING msvc libusb/libusb-1.0.def libusb/version_nano.h \
+  examples/getopt/getopt.c examples/getopt/getopt1.c examples/getopt/getopt.h \
+  android Xcode
+SUBDIRS = libusb doc
 
 if BUILD_EXAMPLES
 SUBDIRS += examples
 endif
 
-pkgconfigdir=$(libdir)/pkgconfig
-pkgconfig_DATA=fpusb.pc
+if BUILD_TESTS
+SUBDIRS += tests
+endif
 
-.PHONY: ChangeLog dist-up
-ChangeLog:
-       git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog
+pkgconfigdir=$(libdir)/pkgconfig
+pkgconfig_DATA=libusb-1.0.pc
 
-dist-hook: ChangeLog
+.PHONY: dist-up
 
+reldir = .release/$(distdir)
 dist-up: dist
-       ncftpput upload.sourceforge.net incoming $(distdir).tar.bz2
-
+       rm -rf $(reldir)
+       mkdir -p $(reldir)
+       cp $(distdir).tar.bz2 $(reldir)
+       rsync -rv $(reldir) frs.sourceforge.net:/home/frs/project/l/li/libusb/libusb-1.0/
+       rm -rf $(reldir)