blob: 8d0fdced17dd5e166d1c9a9cbcf2794c94fe2ba3 (
plain)
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
113
114
|
# loader/Makefile.am for anaconda
#
# Copyright (C) 2009 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Author: David Cantrell <dcantrell@redhat.com>
bootdir = $(libdir)/$(PACKAGE_NAME)-runtime/loader
boot_PROGRAMS = loader
boot_DATA = loader.tr
dist_boot_DATA = unicode-linedraw-chars.txt
noinst_PROGRAMS = mkctype dirbrowser
noinst_DATA = ctype.c
noinst_HEADERS = *.h
if IS_S390
boot_PROGRAMS += shutdown
dist_boot_SCRIPTS = linuxrc.s390 lsznet.raw controlunits.sh
else
boot_PROGRAMS += init
endif
if IS_KEYMAPS_OVERRIDE_ARCH
keymapsdir = $(libdir)/$(PACKAGE_NAME)-runtime
keymaps_DATA = keymaps-override-$(ARCH)
endif
COMMON_CFLAGS = -DUSE_LOGDEV -DVERSION='"$(PACKAGE_VERSION)"'
loader_CFLAGS = $(COMMON_CFLAGS) $(LIBNM_GLIB_CFLAGS) \
$(LIBCURL_CFLAGS) \
-DINCLUDE_LOCAL -DINCLUDE_NETWORK
loader_LDADD = $(NEWT_LIBS) $(POPT_LIBS) $(LIBNL_LIBS) \
$(LIBNM_GLIB_LIBS) $(CHECKISOMD5_LIBS) \
$(LIBCURL_LIBS) \
$(ISCSI_LIBS) $(top_srcdir)/isys/libisys.la
loader_SOURCES = loader.c copy.c log.c moduleinfo.c loadermisc.c \
modules.c windows.c lang.c kbd.c driverdisk.c \
selinux.c mediacheck.c kickstart.c driverselect.c \
getparts.c dirbrowser.c fwloader.c ibft.c hardware.c \
method.c cdinstall.c hdinstall.c nfsinstall.c \
urlinstall.c net.c urls.c telnet.c telnetd.c
init_CFLAGS = $(COMMON_CFLAGS)
init_SOURCES = init.c undomounts.c shutdown.c copy.c
shutdown_CFLAGS = $(COMMON_CFLAGS) -DAS_SHUTDOWN=1
shutdown_SOURCES = shutdown.c undomounts.c
mkctype_CFLAGS = $(COMMON_CFLAGS)
mkctype_SOURCES = mkctype.c
dirbrowser_CFLAGS = $(COMMON_CFLAGS) -DSTANDALONE
dirbrowser_LDADD = $(NEWT_LIBS)
dirbrowser_SOURCES = dirbrowser.c
EXTRA_DIST = simplemot keymaps-*
CLEANFILES = keymaps-override-$(ARCH) ctype.c tr/*.tr
MAINTAINERCLEANFILES = Makefile.in
sed_verbose = $(sed_verbose_$(V))
sed_verbose_ = $(sed_verbose_$(AM_DEFAULT_VERBOSITY))
sed_verbose_0 = @echo " SED "$@;
cp_verbose = $(cp_verbose_$(V))
cp_verbose_ = $(cp_verbose_$(AM_DEFAULT_VERBOSITY))
cp_verbose_0 = @echo " CP "$@;
mkctype_verbose = $(mkctype_verbose_$(V))
mkctype_verbose_ = $(mkctype_verbose_$(AM_DEFAULT_VERBOSITY))
mkctype_verbose_0 = @echo " MAKE "$@;
msgmerge_verbose = $(msgmerge_verbose_$(V))
msgmerge_verbose_ = $(msgmerge_verbose_$(AM_DEFAULT_VERBOSITY))
msgmerge_verbose_0 = echo " MERGE "$${lang}.po;
xgettext_verbose = $(xgettext_verbose_$(V))
xgettext_verbose_ = $(xgettext_verbose_$(AM_DEFAULT_VERBOSITY))
xgettext_verbose_0 = @echo " GETTXT "$@;
keymaps-override-$(ARCH): keymaps-$(ARCH)
$(cp_verbose)cp -p $< $@
ctype.c: mkctype
$(mkctype_verbose)./mkctype > ctype.c
loader.tr: $(top_srcdir)/lang-table loader.po
@LANGS="`cut -f 2 $(top_srcdir)/lang-table | egrep -v '(^en$$)'`" ; \
if [ ! -d tr ]; then \
mkdir -p tr ; \
fi ; \
for lang in $$LANGS ; do \
$(msgmerge_verbose)msgmerge -q $(top_srcdir)/po/$$lang.po loader.po | msgconv -t utf-8 | ./simplemot > tr/$$lang.tr ; \
done ; \
(cd tr ; ls -1 *.tr | cpio --quiet -Hcrc -o | gzip -9) > $@
loader.po:
$(xgettext_verbose)xgettext --default-domain=loader --add-comments \
--keyword=_ --keyword=N_ *.c
$(sed_verbose)sed -i 's/charset=CHARSET/charset=UTF-8/' $@
|