lsyncd/Makefile.am

61 lines
1.4 KiB
Makefile
Raw Normal View History

ACLOCAL_AMFLAGS = -I m4
CFLAGS += -Wall $(LUA_CFLAGS)
2010-10-14 13:52:01 +00:00
bin_PROGRAMS = lsyncd
lsyncd_SOURCES = lsyncd.h lsyncd.c lsyncd.lua default-rsync.lua
2010-12-07 15:42:46 +00:00
if INOTIFY
lsyncd_SOURCES += inotify.c
2010-12-07 15:42:46 +00:00
endif
2010-11-28 10:47:57 +00:00
if FSEVENTS
lsyncd_SOURCES += fsevents.c
endif
lsyncd_LDADD = $(LUA_LIBS)
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 \
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
doc/lsyncd.1: doc/lsyncd.1.txt
2013-09-15 16:03:27 +00:00
a2x --format=manpage $<
2010-11-13 08:50:30 +00:00
CLEANFILES = runner.out defaults.out runner.c defaults.c
# compiles the runner and the defaults into the binary
lsyncd_LDADD += runner.o defaults.o
runner.o: runner.c
2012-03-26 17:58:37 +00:00
defaults.o: defaults.c
runner.c: runner.out bin2carray.lua
$(LUA) ./bin2carray.lua $< runner $@
2010-10-26 20:29:12 +00:00
defaults.c: defaults.out bin2carray.lua
$(LUA) ./bin2carray.lua $< defaults $@
2010-10-26 20:29:12 +00:00
runner.out: lsyncd.lua
$(LUAC) -o $@ $<
2011-05-04 13:18:37 +00:00
defaults.out: default.lua default-rsync.lua default-rsyncssh.lua default-direct.lua
$(LUAC) -o $@ $^