Makefile.am 876 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. ACLOCAL_AMFLAGS=-I config
  2. if DOC
  3. DOC_SUBDIR = doc
  4. endif
  5. if TEST
  6. TEST_SUBDIR = tests
  7. endif
  8. SUBDIRS = config src ${DOC_SUBDIR} ${TEST_SUBDIR} examples
  9. DIST_SUBDIRS = config src doc tests examples
  10. EXTRA_DIST = \
  11. log4c.m4 \
  12. log4c.spec.in \
  13. log4c.spec
  14. bin_SCRIPTS = log4c-config
  15. BUILT_SOURCES=log4c-config
  16. m4datadir = $(datadir)/aclocal
  17. m4data_DATA = log4c.m4
  18. sysconf_DATA = log4crc.sample
  19. dist_man_MANS = log4c-config.1
  20. pkgconfigdir = $(libdir)/pkgconfig
  21. pkgconfig_DATA = log4c.pc
  22. rpm: dist
  23. mkdir -p $(distdir)/rpmbuild/{BUILD,RPMS,SOURCES,SRPMS,SPECS}
  24. mkdir $(distdir)/rpmbuild/RPMS/i386
  25. # remove the "--clean" here to leave the rpmbuild intermediate file
  26. # for debugging the rpm generation
  27. # The _topdir seems to have to be absolute
  28. rpmbuild -ta --clean --define='_topdir $(CURDIR)/$(distdir)/rpmbuild' ${distdir}.tar.gz
  29. #rpmbuild --clean -ta ${distdir}.tar.gz