lsyncd/Makefile.am

61 lines
1.2 KiB
Makefile
Raw Normal View History

2010-10-14 13:52:01 +00:00
AUTOMAKE_OPTIONS = foreign
2010-11-29 15:01:24 +00:00
CFLAGS += -Wall $(LUA_CFLAGS)
2010-10-14 13:52:01 +00:00
bin_PROGRAMS = lsyncd
lsyncd_SOURCES = lsyncd.h lsyncd.c lsyncd.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
2011-08-16 17:00:07 +00:00
EXTRA_DIST = doc/lsyncd.1.txt doc/lsyncd.1.xml inotify.c fsevents.c bin2carray.lua
2010-10-26 20:29:12 +00:00
2010-11-27 23:28:44 +00:00
doc/lsyncd.1: doc/lsyncd.1.xml
xsltproc -o $@ -nonet /etc/asciidoc/docbook-xsl/manpage.xsl $<
doc/lsyncd.1.xml: doc/lsyncd.1.txt
asciidoc -o $@ -b docbook -d manpage $<
2010-11-13 08:50:30 +00:00
CLEANFILES = luac.out luac.c
2010-11-27 23:28:44 +00:00
if RUNNER
# installs the runner script
2010-11-13 08:50:30 +00:00
runnerdir = $(RUNNER_DIR)
runner_DATA = lsyncd.lua
2010-10-26 20:29:12 +00:00
else
2010-11-13 08:50:30 +00:00
# or compiles it into the binary
lsyncd_LDADD += luac.o
2010-10-26 20:29:12 +00:00
luac.o: luac.c
2010-10-26 20:29:12 +00:00
2011-05-04 13:18:37 +00:00
luac.c: luac.out bin2carray.lua
lua ./bin2carray.lua luac.out luac luac.c
2010-10-26 20:29:12 +00:00
luac.out: lsyncd.lua
luac $<
2010-10-26 20:29:12 +00:00
endif