File: Makefile.am

package info (click to toggle)
cftp 0.12-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 968 kB
  • ctags: 853
  • sloc: ansic: 9,541; sh: 327; makefile: 92
file content (78 lines) | stat: -rw-r--r-- 2,673 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
## Process this file with automake to create Makefile.in

MAKEINFO = makeinfo --no-validate

LDADD=	@LIBOBJS@

bin_PROGRAMS=	cftp
info_TEXINFOS=	cftp.texi
cftp_TEXINFOS=	functions.texi options.texi
noinst_PROGRAMS=mkbind

cftp_SOURCES=	bindings.c directory.c display.c fn_basic.c fn_bind.c \
	fn_scroll.c fn_select.c fn_tag.c fntable.c ftp.c functions.c \
	keys.c list.c loop.c main.c methods.c options.c rc.c readdir.c \
	readrc.c sftp.c signals.c sockets.c status.c tag.c tty.c url.c util.c

mkbind_SOURCES=	fn_bind.c functions.c mkbind.c keys.c rc.c

noinst_HEADERS=	bindings.h directory.h display.h fnmatch_repl.h fntable.h \
	ftp.h functions.h getopt.h keys.h list.h loop.h methods.h options.h \
	rc.h readdir.h signals.h sockets.h status.h tag.h tty.h url.h util.h

cftp_DEPENDENCIES=    @LIBOBJS@
mkbind_DEPENDENCIES=    @LIBOBJS@

EXTRA_DIST=	bindings.desc \
		mkfntexi.m4 mkfntab-c.m4 mkfntab-h.m4 fntable.fn \
		mkoptexi.m4 mkoptab-c.m4 mkoptab-h.m4 options.op \
		mkmethods-c.m4 mkmethods-h.m4 methods.mt

BUILT_SOURCES=	fntable.c fntable.h methods.c methods.h \
		options.c options.h bindings.c

# extra rules

bindings.c : mkbind bindings.desc fntable.c
	./mkbind $(srcdir)

fntable.c : fntable.fn mkfntab-c.m4
	m4 $(srcdir)/mkfntab-c.m4 $(srcdir)/fntable.fn > fntable.c.$$$$ \
	&& mv fntable.c.$$$$ fntable.c

fntable.h : fntable.fn mkfntab-h.m4
	m4 $(srcdir)/mkfntab-h.m4 $(srcdir)/fntable.fn > fntable.h.$$$$ \
	&& mv fntable.h.$$$$ fntable.h

functions.texi : fntable.fn mkfntexi.m4
	m4 $(srcdir)/mkfntexi.m4 $(srcdir)/fntable.fn \
		>> functions.texi-unsort.$$$$ \
	&& sed -e '/^<-------/,$$ d' $(srcdir)/functions.texi-unsort.$$$$ \
		> functions.texi.$$$$ \
	&& sed -e '1,/^<-------/ d' -e '/^------->/,$$ d' \
		functions.texi-unsort.$$$$ \
		| sort -t: +0 -1 >> functions.texi.$$$$ \
	&& sed -e '1,/^------->/ d' functions.texi-unsort.$$$$ \
		 >> functions.texi.$$$$ \
	&& mv functions.texi.$$$$ functions.texi \
	&& rm functions.texi-unsort.$$$$

methods.c: methods.mt mkmethods-c.m4
	m4 $(srcdir)/mkmethods-c.m4 $(srcdir)/methods.mt > methods.c.$$$$ \
	&& mv methods.c.$$$$ methods.c

methods.h: methods.mt mkmethods-h.m4
	m4 $(srcdir)/mkmethods-h.m4 $(srcdir)/methods.mt > methods.h.$$$$ \
	&& mv methods.h.$$$$ methods.h

options.c: options.op $(srcdir)/mkoptab-c.m4
	m4 $(srcdir)/mkoptab-c.m4 $(srcdir)/options.op > options.c.$$$$ \
	&& mv options.c.$$$$ options.c

options.h: options.op mkoptab-h.m4
	m4 $(srcdir)/mkoptab-h.m4 $(srcdir)/options.op > options.h.$$$$ \
	&& mv options.h.$$$$ options.h

options.texi: options.op mkoptexi.m4
	m4 $(srcdir)/mkoptexi.m4 $(srcdir)/options.op > options.texi.$$$$ \
	&& mv options.texi.$$$$ options.texi