File: Makefile.am

package info (click to toggle)
e2tools 0.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 432 kB
  • sloc: ansic: 3,838; makefile: 56; sh: 30
file content (112 lines) | stat: -rw-r--r-- 3,085 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
102
103
104
105
106
107
108
109
110
111
112
########################################################################
# autotools control definitions
########################################################################

ACLOCAL_AMFLAGS = -I m4 -I e2t-m4


########################################################################
# e2tools variables to append to
########################################################################

# hook targets
all_targets =
clean_targets =
install_targets =
uninstall_targets =
phony_targets =

# list of e2tools like e2ls and e2cp etc
e2tools_list =

# list of -e 's|||g' arguments to sed for preprocessing *.in files
sed_in_commands =


########################################################################
# Automake variables to append to
########################################################################

BUILT_SOURCES =
CLEANFILES =
EXTRA_DIST =
SUFFIXES =
TESTS =

bin_PROGRAMS =
dist_man_MANS =
man_MANS =


########################################################################
# Documentation files
########################################################################

EXTRA_DIST += DEVELOPMENT.md
EXTRA_DIST += NEWS.md
EXTRA_DIST += README.md
EXTRA_DIST += TODO


########################################################################
# include files
########################################################################

include src/include.am
include tests/include.am


########################################################################
# .in replacement rules
########################################################################

HASHMARK = \#

if HAVE_EXT2FS_XATTRS
sed_in_commands += -e 's|[@]HAVE_EXT2FS_XATTRS_MAN_FALSE@||g'
sed_in_commands += -e 's|[@]HAVE_EXT2FS_XATTRS_MAN_TRUE@|.\\" |g'
sed_in_commands += -e 's|[@]HAVE_EXT2FS_XATTRS_FALSE@||g'
sed_in_commands += -e 's|[@]HAVE_EXT2FS_XATTRS_TRUE@|$(HASHMARK) |g'
else
sed_in_commands += -e 's|[@]HAVE_EXT2FS_XATTRS_MAN_FALSE@|.\\" |g'
sed_in_commands += -e 's|[@]HAVE_EXT2FS_XATTRS_MAN_TRUE@||g'
sed_in_commands += -e 's|[@]HAVE_EXT2FS_XATTRS_FALSE@|$(HASHMARK) |g'
sed_in_commands += -e 's|[@]HAVE_EXT2FS_XATTRS_TRUE@||g'
endif

sed_in_commands += -e 's|[@]top_builddir@|$(top_builddir)|g'
sed_in_commands += -e 's|[@]top_srcdir@|$(top_srcdir)|g'
sed_in_commands += -e 's|[@]DD@|$(DD)|g'
sed_in_commands += -e 's|[@]MKE2FS@|$(MKE2FS)|g'

SUFFIXES += .1.in .1
.1.in.1:
	$(MKDIR_P) $(@D)
	$(SED) $(sed_in_commands) < $< > $@

SUFFIXES += .sh.in .sh
.sh.in.sh:
	$(MKDIR_P) $(@D)
	$(SED) $(sed_in_commands) < $< > $@
	$(CHMOD) +x $@


########################################################################
# local hooks we have collected targets in variables for
########################################################################

.PHONY: $(phony_targets)

all-local: $(all_targets)

install-exec-hook: $(install_targets)

uninstall-hook: $(uninstall_targets)

clean-local: $(clean_targets)
	-rm -f *.i *.s


########################################################################
# End of Makefile.am
########################################################################