Bump version for development.
[libpwmd.git] / Makefile.am
blob738063f9e56a39ec7689cdb86d7f3738e028b7c8
1 EXTRA_DIST = TODO ChangeLog INSTALL NEWS debian ABOUT-NLS libpwmd-8.0.pc.in \
2              README.SSH autogen.sh
3 SUBDIRS = doc src po contrib
4 ACLOCAL_AMFLAGS = -I m4
6 install-data-hook:
7         test -d $(DESTDIR)${libdir}/pkgconfig \
8             || $(INSTALL) -m 0755 -d $(DESTDIR)${libdir}/pkgconfig
9         $(INSTALL) -m 0644 ${top_builddir}/libpwmd-8.0.pc \
10                 $(DESTDIR)${libdir}/pkgconfig
12 uninstall-hook:
13         rm -f $(DESTDIR)${libdir}/pkgconfig/libpwmd-8.0.pc
15 distclean-local:
16         rm -f libpwmd-8.0.pc
18 git_changelog:
19         git log v7.0.0~1..master --no-color > ChangeLog || exit 1
21 ChangeLog:
22         if test -d ${top_builddir}/.git/; then \
23             $(MAKE) $(AM_MAKEFLAGS) git_changelog; \
24         elif ! test -f ${top_builddir}/ChangeLog; then \
25             touch ${top_builddir}/ChangeLog; \
26         fi
28 deb: ChangeLog
29         rm -f $(top_builddir)/src/version.h
30         BUILDING_PKG=1 dpkg-buildpackage -B -uc -rfakeroot && dh_clean
31         rm -f $(top_builddir)/src/version.h
33 version: git_changelog
34         rm -f $(top_builddir)/src/version.h
35         BUILDING_PKG=1 $(MAKE) $(AM_MAKEFLAGS) distcheck
36         rm -f $(top_builddir)/src/version.h