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