Makefile.am 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #
  2. # This program is free software; you can redistribute it and/or modify
  3. # it under the terms of the GNU General Public License as published by
  4. # the Free Software Foundation, version 2 of the License.
  5. #
  6. # This program is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. # GNU General Public License for more details.
  10. #
  11. AM_CPPFLAGS = -include config.h
  12. sbin_PROGRAMS = logrotate
  13. logrotate_SOURCES = config.c log.c logrotate.c \
  14. log.h logrotate.h queue.h
  15. dist_man_MANS = logrotate.8 logrotate.conf.5
  16. dist_noinst_DATA = logrotate.spec
  17. EXTRA_DIST = ChangeLog.md README.md autogen.sh build-aux examples
  18. # the dot ensures that logrotate is built before it is tested
  19. SUBDIRS = . test
  20. # for compatibility with older releases of logrotate
  21. test: check
  22. .PHONY: srpm rpm
  23. rpm: srpm
  24. rpmbuild $(RPM_FLAGS) -ta $(distdir).tar.gz
  25. srpm: dist
  26. rpmbuild $(RPM_FLAGS) -ts $(distdir).tar.gz
  27. # taken from build-aux/git-version-gen
  28. EXTRA_DIST += $(top_srcdir)/.version
  29. BUILT_SOURCES = $(top_srcdir)/.version
  30. $(top_srcdir)/.version:
  31. echo $(VERSION) > $@-t && mv $@-t $@
  32. dist-hook:
  33. echo $(VERSION) > $(distdir)/.tarball-version