Makefile.am 885 B

1234567891011121314151617181920212223242526272829303132333435
  1. bin_PROGRAMS = clsync
  2. clsync_SOURCES = sync.c cluster.c main.c output.c fileutils.c malloc.c
  3. main.o: revision.h
  4. man_MANS = man/man1/clsync.1
  5. doc_DATA = CONTRIB DEVELOPING LICENSE PROTOCOL README.md TODO
  6. exampledir=$(docdir)/examples
  7. example_DATA = \
  8. examples/clsync-synchandler-so.c \
  9. examples/clsync-synchandler-rsync.sh \
  10. examples/clsync-synchandler-production.sh \
  11. examples/clsync-start-so.sh \
  12. examples/clsync-start-rsync.sh \
  13. examples/clsync-start-simple.sh \
  14. examples/clsync-start-cluster.sh \
  15. examples/clsync-start-production.sh
  16. revision.h:
  17. (echo -n '#define REVISION "'; [ -d .git ] && \
  18. (echo -n '.'$$(( $$(git log 2>/dev/null | grep -c ^commit | tr -d "\n") - 308 )) ) \
  19. || echo -n '-release'; echo '"') > $@
  20. doc:
  21. doxygen .doxygen
  22. CLEANFILES = revision.h
  23. CLEANFILES += examples/rules
  24. clean-local:
  25. -rm -rf examples/testdir examples/*.o examples/*.so doc