2010-10-14 13:52:01 +00:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
2012-02-15 19:00:28 +00:00
|
|
|
CFLAGS += -Wall $(LUA_CFLAGS)
|
2010-10-14 13:52:01 +00:00
|
|
|
bin_PROGRAMS = lsyncd
|
2012-02-15 19:00:28 +00:00
|
|
|
lsyncd_SOURCES = lsyncd.h lsyncd.c lsyncd.lua default-rsync.lua
|
|
|
|
|
2010-12-07 15:42:46 +00:00
|
|
|
if INOTIFY
|
2010-11-26 16:17:36 +00:00
|
|
|
lsyncd_SOURCES += inotify.c
|
2010-12-07 15:42:46 +00:00
|
|
|
endif
|
2010-11-28 10:47:57 +00:00
|
|
|
|
2011-08-16 14:25:30 +00:00
|
|
|
if FSEVENTS
|
|
|
|
lsyncd_SOURCES += fsevents.c
|
|
|
|
endif
|
2010-11-26 16:17:36 +00:00
|
|
|
|
2010-11-28 20:16:56 +00:00
|
|
|
lsyncd_LDADD = $(LUA_LIBS)
|
2011-07-19 13:29:19 +00:00
|
|
|
exampledir = $(docdir)/
|
2010-11-14 19:53:36 +00:00
|
|
|
dist_example_DATA = \
|
2010-11-14 14:13:15 +00:00
|
|
|
examples/lbash.lua \
|
2010-11-17 19:21:11 +00:00
|
|
|
examples/lecho.lua \
|
|
|
|
examples/lgforce.lua \
|
2010-11-14 14:13:15 +00:00
|
|
|
examples/limagemagic.lua \
|
2011-02-08 16:38:55 +00:00
|
|
|
examples/lpostcmd.lua \
|
2010-11-14 14:13:15 +00:00
|
|
|
examples/lrsync.lua \
|
|
|
|
examples/lrsyncssh.lua
|
2011-01-18 18:41:09 +00:00
|
|
|
TESTS = \
|
|
|
|
tests/churn-rsync.lua \
|
|
|
|
tests/churn-rsyncssh.lua \
|
2011-02-08 16:38:55 +00:00
|
|
|
tests/churn-direct.lua \
|
2011-01-26 12:08:50 +00:00
|
|
|
tests/exclude-rsync.lua \
|
|
|
|
tests/exclude-rsyncssh.lua \
|
2011-08-18 13:29:18 +00:00
|
|
|
tests/schedule.lua \
|
2011-01-18 18:41:09 +00:00
|
|
|
tests/l4rsyncdata.lua
|
2010-11-17 13:58:31 +00:00
|
|
|
|
2010-12-02 11:57:04 +00:00
|
|
|
dist_man1_MANS = doc/lsyncd.1
|
2012-04-04 11:54:13 +00:00
|
|
|
EXTRA_DIST = doc/lsyncd.1.txt inotify.c fsevents.c bin2carray.lua \
|
2012-02-16 13:15:48 +00:00
|
|
|
default.lua default-rsync.lua default-rsyncssh.lua default-direct.lua
|
2010-10-26 20:29:12 +00:00
|
|
|
|
2012-04-04 11:15:33 +00:00
|
|
|
doc/lsyncd.1: doc/lsyncd.1.txt
|
2012-10-02 00:16:00 +00:00
|
|
|
$(A2X) --format=manpage $<
|
2010-11-13 08:50:30 +00:00
|
|
|
|
2012-10-02 00:49:33 +00:00
|
|
|
CLEANFILES = runner.out defaults.out runner.c defaults.c doc/lsyncd.1
|
2011-08-16 14:25:30 +00:00
|
|
|
|
2012-04-04 11:15:33 +00:00
|
|
|
# compiles the runner and the defaults into the binary
|
2012-02-15 19:00:28 +00:00
|
|
|
lsyncd_LDADD += runner.o defaults.o
|
|
|
|
|
|
|
|
runner.o: runner.c
|
2012-03-26 17:58:37 +00:00
|
|
|
defaults.o: defaults.c
|
2012-02-15 19:00:28 +00:00
|
|
|
|
|
|
|
runner.c: runner.out bin2carray.lua
|
2012-10-02 00:32:15 +00:00
|
|
|
$(LUA) ./bin2carray.lua $< runner $@
|
2010-10-26 20:29:12 +00:00
|
|
|
|
2012-02-15 19:00:28 +00:00
|
|
|
defaults.c: defaults.out bin2carray.lua
|
2012-10-02 00:32:15 +00:00
|
|
|
$(LUA) ./bin2carray.lua $< defaults $@
|
2010-10-26 20:29:12 +00:00
|
|
|
|
2012-02-15 19:00:28 +00:00
|
|
|
runner.out: lsyncd.lua
|
2012-10-02 00:32:15 +00:00
|
|
|
$(LUAC) -o $@ $<
|
2011-05-04 13:18:37 +00:00
|
|
|
|
2012-02-15 19:00:28 +00:00
|
|
|
defaults.out: default.lua default-rsync.lua default-rsyncssh.lua default-direct.lua
|
2012-10-02 00:32:15 +00:00
|
|
|
$(LUAC) -o $@ $^
|
2011-05-04 13:03:58 +00:00
|
|
|
|