forked from MaxFork/MegaTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
89 lines (71 loc) · 1.59 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
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
# global flags
COMMANDS = df dl get ls test export mkdir put reg rm copy
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = \
$(GLIB_CFLAGS) \
$(OPENSSL_CFLAGS) \
$(LIBCURL_CFLAGS) \
-DG_LOG_DOMAIN=\"Mega\" \
-I$(srcdir)/lib \
-I$(srcdir) \
-std=c99
LDADD = \
$(GLIB_LIBS) \
$(OPENSSL_LIBS) \
$(LIBCURL_LIBS)
# tools
EXTRA_DIST = lib/sjson.c
bin_PROGRAMS = megatools
megatools_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/df.c \
tools/dl.c \
tools/get.c \
tools/ls.c \
tools/test.c \
tools/export.c \
tools/mkdir.c \
tools/put.c \
tools/reg.c \
tools/rm.c \
tools/copy.c \
tools/shell.c \
tools/shell.h
if INSTALL_COMPAT_SYMLINKS
install-exec-hook:
cd $(DESTDIR)$(bindir) && \
for cmd in $(COMMANDS) ; do \
rm -f mega$$cmd$(EXEEXT) ; \
$(LN_S) megatools$(EXEEXT) mega$$cmd$(EXEEXT) ; \
done
endif
# docs
MAN1 = megatools $(addprefix megatools-,$(COMMANDS))
MAN5 = megarc
man1_MANS = $(addprefix docs/,$(addsuffix .1, $(MAN1)))
man5_MANS = $(addprefix docs/,$(addsuffix .5, $(MAN5)))
EXTRA_DIST += $(man1_MANS) $(man5_MANS)
EXTRA_DIST += LICENSE HACKING contrib/bash-completion/megatools
doc_DATA = LICENSE NEWS TODO README INSTALL HACKING
EXTRA_DIST += \
docs/auth-options.txt \
docs/basic-options.txt \
docs/download-options.txt \
docs/footer.txt \
docs/megarc.txt \
$(addsuffix .txt,$(addprefix docs/megatools-,$(COMMANDS))) \
docs/megatools.txt \
docs/network-options.txt \
docs/remote-paths.txt \
docs/upload-options.txt \
docs/asciidoc.conf \
docs/Makefile