forked from jsholmes/lsyncd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
61 lines (47 loc) · 1.38 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
ACLOCAL_AMFLAGS = -I m4
CFLAGS += -Wall $(LUA_CFLAGS)
bin_PROGRAMS = lsyncd
lsyncd_SOURCES = lsyncd.h lsyncd.c lsyncd.lua default-rsync.lua
if INOTIFY
lsyncd_SOURCES += inotify.c
endif
if FSEVENTS
lsyncd_SOURCES += fsevents.c
CFLAGS += -I xnu-2422.1.72
endif
lsyncd_LDADD = $(LUA_LIBS)
exampledir = $(docdir)/
dist_example_DATA = \
examples/lbash.lua \
examples/lecho.lua \
examples/lgforce.lua \
examples/limagemagic.lua \
examples/lpostcmd.lua \
examples/lrsync.lua \
examples/lrsyncssh.lua
TESTS = \
tests/churn-rsync.lua \
tests/churn-rsyncssh.lua \
tests/churn-direct.lua \
tests/exclude-rsync.lua \
tests/exclude-rsyncssh.lua \
tests/schedule.lua \
tests/l4rsyncdata.lua
dist_man1_MANS = doc/lsyncd.1
EXTRA_DIST = doc/lsyncd.1.txt inotify.c fsevents.c bin2carray.lua \
default.lua default-rsync.lua default-rsyncssh.lua default-direct.lua
doc/lsyncd.1: doc/lsyncd.1.txt
a2x --format=manpage $<
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
defaults.o: defaults.c
runner.c: runner.out bin2carray.lua
$(LUA) ./bin2carray.lua $< runner $@
defaults.c: defaults.out bin2carray.lua
$(LUA) ./bin2carray.lua $< defaults $@
runner.out: lsyncd.lua
$(LUAC) -o $@ $<
defaults.out: default.lua default-rsync.lua default-rsyncssh.lua default-direct.lua
$(LUAC) -o $@ $^