File: Makefile.am

package info (click to toggle)
megatools 1.9.98-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,400 kB
  • ctags: 791
  • sloc: ansic: 5,798; sh: 4,094; makefile: 72
file content (101 lines) | stat: -rw-r--r-- 2,133 bytes parent folder | download
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# {{{ global flags

BUILT_SOURCES =
CLEANFILES =
EXTRA_DIST =
DISTCLEANFILES =

AM_CFLAGS = \
	$(GLIB_CFLAGS) \
	$(OPENSSL_CFLAGS) \
	$(LIBCURL_CFLAGS) \
	-DG_LOG_DOMAIN=\"Mega\" \
	-I$(srcdir)/lib \
	-I$(srcdir)

# }}}
# {{{ libmega

noinst_LIBRARIES = libmega.a

libmega_a_SOURCES = \
	lib/sjson.gen.c \
	lib/sjson.h \
	lib/http.c \
	lib/http.h \
	lib/mega.c \
	lib/mega.h \
	lib/tools.c \
	lib/tools.h \
	lib/alloc.h \
	lib/mega.h

# }}}
# {{{ tools

EXTRA_DIST += \
	lib/sjson.c

LDADD = \
	libmega.a \
	$(GLIB_LIBS) \
	$(OPENSSL_LIBS) \
	$(LIBCURL_LIBS)

bin_PROGRAMS = megadf megadl megaget megals megamkdir megaput megareg megarm megacopy

megadf_SOURCES     = tools/df.c
megadl_SOURCES     = tools/dl.c
megaget_SOURCES    = tools/get.c
megals_SOURCES     = tools/ls.c
megamkdir_SOURCES  = tools/mkdir.c
megaput_SOURCES    = tools/put.c
megareg_SOURCES    = tools/reg.c
megarm_SOURCES     = tools/rm.c
megacopy_SOURCES   = tools/copy.c

# }}}
# {{{ docs

MAN1 = megadf megadl megaget megals megamkdir megaput megareg megarm megacopy
MAN5 = megarc
MAN7 = megatools

EXTRA_DIST += \
	docs/asciidoc.conf \
	docs/footer.txt \
	docs/remote-paths.txt \
	docs/basic-options.txt \
	docs/auth-options.txt \
	$(addprefix docs/,$(addsuffix .txt, $(MAN1) $(MAN5) $(MAN7)))

if ENABLE_DOCS

man1_MANS = $(addprefix docs/,$(addsuffix .1, $(MAN1)))
man5_MANS = $(addprefix docs/,$(addsuffix .5, $(MAN5)))
man7_MANS = $(addprefix docs/,$(addsuffix .7, $(MAN7)))

MANS_ALL = $(man1_MANS) $(man5_MANS) $(man7_MANS)

BUILT_SOURCES += $(MANS_ALL)
DISTCLEANFILES += $(MANS_ALL)
EXTRA_DIST += $(MANS_ALL)

%.1 %.5 %.7: %.txt docs/auth-options.txt docs/basic-options.txt docs/remote-paths.txt docs/footer.txt docs/asciidoc.conf
	$(AM_V_GEN)mkdir -p "$(top_builddir)/docs"
	$(AM_V_GEN)a2x --asciidoc-opts="-f $(top_srcdir)/docs/asciidoc.conf -o $@" --destination-dir $(top_builddir)/docs -f manpage $<
	@sed -i 's/\[FIXME: manual]/Megatools Manual/' $@
	@sed -i 's/\[FIXME: source]/megatools $(VERSION)/' $@

endif

# }}}
# {{{ tests

EXTRA_DIST += LICENSE HACKING

doc_DATA = LICENSE NEWS TODO README INSTALL HACKING

# }}}

ACLOCAL_AMFLAGS = -I m4