Makefile.am 641 Bytes
bin_PROGRAMS = clsync

clsync_SOURCES = sync.c cluster.c main.c output.c fileutils.c malloc.c

main.o: revision.h

man_MANS = man/man1/clsync.1

doc_DATA = CONTRIB DEVELOPING LICENSE README.md TODO

exampledir=$(docdir)/examples

example_DATA = examples/clsync-actionscript.sh		\
 examples/clsync-start0.sh examples/clsync-start1.sh

revision.h:
	(echo -n '#define REVISION "'; [ -d .git ] && \
	(echo -n '.'$$(( $$(git log 2>/dev/null | grep -c ^commit | tr -d "\n") - 137 )) ) \
	|| echo -n '-release'; echo '"') > $@

doc:
	doxygen .doxygen

CLEANFILES = revision.h
CLEANFILES += examples/rules
clean-local:
	-rm -rf examples/testdir doc