1AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
2ACLOCAL_AMFLAGS = -I m4
3DISTCLEANFILES = ChangeLog libusb-1.0.pc
4EXTRA_DIST = TODO PORTING
5SUBDIRS = libusb doc
6
7if BUILD_EXAMPLES
8SUBDIRS += examples
9endif
10
11pkgconfigdir=$(libdir)/pkgconfig
12pkgconfig_DATA=libusb-1.0.pc
13
14.PHONY: ChangeLog dist-up
15ChangeLog:
16	git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog
17
18dist-hook: ChangeLog
19
20reldir = .release/$(distdir)
21dist-up: dist
22	rm -rf $(reldir)
23	mkdir -p $(reldir)
24	cp $(distdir).tar.bz2 $(reldir)
25	rsync -rv $(reldir) dsd_,libusb@frs.sourceforge.net:/home/frs/project/l/li/libusb/libusb-1.0/
26	rm -rf $(reldir)
27
28