File: Makefile.am

package info (click to toggle)
input-pad 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,172 kB
  • sloc: ansic: 11,118; makefile: 451; python: 206; sh: 103; xml: 8
file content (144 lines) | stat: -rw-r--r-- 5,792 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# vim:set noet ts=4:
#
# input-pad - The input pad
#
# Copyright (c) 2010-2025 Takao Fujiwara <takao.fujiwara1@gmail.com>
# Copyright (c) 2010-2025 Red Hat, Inc.
#
# This library 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 of the License, or (at your option) any later version.
#
# This library 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 library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA  02110-1301  USA

icon_DATA = input-pad.png
icondir = $(datarootdir)/pixmaps

paddir = $(pkgdatadir)/pad
pad_in_files = \
	base.xml.in                                             \
	latin.xml.in                                            \
	ipa-obsolete.xml.in                                     \
	ipa-unofficial.xml.in                                   \
	ipa.xml.in                                              \
	runr.xml.in                                             \
	goth.xml.in                                             \
	shaw.xml.in                                             \
	ja.xml.in                                               \
	zh.xml.in                                               \
	str.xml.in                                              \
	w3c.xml.in                                              \
	cmd.xml.in                                              \
	$(NULL)

pad_in_in_files = \
	alphabet.xml.in.in                                      \
	$(NULL)

pad_no_sorted = $(pad_in_files:.xml.in=.xml)
pad_no_sorted += $(pad_in_in_files:.xml.in.in=.xml.in)
pad_no_sorted += $(pad_in_in_files:.xml.in.in=.xml)
pad_DATA = \
	group01-base.xml                                        \
	group02-alphabet.xml                                    \
	group02-ja.xml                                          \
	group02-zh.xml                                          \
	group50-str.xml                                         \
	group60-w3c.xml                                         \
	group70-cmd.xml                                         \
	$(NULL)

group01-base.xml: base.xml
	@cp $< $@
group02-alphabet.xml: alphabet.xml
	@cp $< $@
group02-ja.xml: ja.xml
	@cp $< $@
group02-zh.xml: zh.xml
	@cp $< $@
group50-str.xml: str.xml
	@cp $< $@
group60-w3c.xml: w3c.xml
	@cp $< $@
group70-cmd.xml: cmd.xml
	@cp $< $@


alphabet.xml.in : alphabet.xml.in.in
	@sed -e "s/_name/name/g"                                \
	     -e "s/_comment/comment/g"                          \
	     -e "s/_label/label/g"                              \
	$< > $@

ALPHABET_TABLE_FILES = \
	latin.xml                                               \
	ipa-obsolete.xml                                        \
	ipa-unofficial.xml                                      \
	ipa.xml                                                 \
	runr.xml                                                \
	goth.xml                                                \
	shaw.xml                                                \
	$(NULL)

alphabet.xml : alphabet.xml.in $(ALPHABET_TABLE_FILES)
	@sed -e "/@latin@/r latin.xml"                          \
	     -e "/@ipa-obsolete@/r ipa-obsolete.xml"            \
	     -e "/@ipa-unofficial@/r ipa-unofficial.xml"        \
	     -e "/@ipa@/r ipa.xml"                              \
	     -e "/@runr@/r runr.xml"                            \
	     -e "/@goth@/r goth.xml"                            \
	     -e "/@shaw@/r shaw.xml"                            \
	alphabet.xml.in > $@;                                   \
	sed -e "/@latin@/d"                                     \
	    -e "/@ipa-obsolete@/d"                              \
	    -e "/@ipa-unofficial@/d"                            \
	    -e "/@ipa@/d"                                       \
	    -e "/@runr@/d"                                      \
	    -e "/@goth@/d"                                      \
	    -e "/@shaw@/d"                                      \
	$@ > $@.$$$$;                                           \
	mv $@.$$$$ $@

# The <dummy> tag is needed for intltoo-extract which is called by
# intltool-update.
# % intltool-extract --update --type=gettext/xml ../data/latin.xml.in
# It seems intltool-extract expects the number of the parent tag is one.
%.xml : %.xml.in
	@sed -e "s/_name/name/g"                                \
	     -e "s/_comment/comment/g"                          \
	     -e "s/_label/label/g"                              \
	     -e "/<dummy>/d"                                    \
	     -e "/<\/dummy>/d"                                  \
	$< > $@

CLEANFILES= \
	$(pad_DATA)                                             \
	$(pad_no_sorted)                                        \
	$(NULL)

#desktopdir = $(datarootdir)/applications
desktop_in_files = input-pad.desktop.in
#desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
#$(desktop_DATA): $(desktop_in_files) Makefile
#	$(AM_V_GEN)$(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@


EXTRA_DIST = \
	$(desktop_in_files)                                     \
	$(icon_DATA)                                            \
	$(pad_in_in_files)                                      \
	$(pad_in_files)                                         \
	char2hexstr.py                                          \
	keyboard.xml.in                                         \
	w3ctostr.py                                             \
	$(NULL)