comparison Makefile.am @ 241:06d6c351925c

*: reorganize resources, +docs, build translations with autotools
author Paper <paper@paper.us.eu.org>
date Mon, 22 Jan 2024 16:36:19 -0500
parents a7d0d543b334
children 82470f83f0c2
comparison
equal deleted inserted replaced
240:6ffe42286978 241:06d6c351925c
1 bin_PROGRAMS = minori 1 bin_PROGRAMS = minori
2 2
3 minori_locale_ts = \
4 rc/locale/en_GB.ts \
5 rc/locale/es.ts
6
7 .ts.qm:
8 @MKDIR_P@ `dirname $@`; \
9 @QT_LRELEASE@ $< -qm $@
10
11 minori_locale_qm = $(minori_locale_ts:.ts=.qm)
12
13 # this has to be in the root build folder
14 translations.qrc: $(minori_locale_qm)
15 printf "<!DOCTYPE rcc><RCC version=\"1.0\">\n\t<qresource prefix=\"locale/\">\n" > $@; \
16 for q in $(minori_locale_qm); do \
17 printf "\t\t<file alias=\"%s\">%s</file>\n" "`basename $$q`" "$$q" >> $@; \
18 done; \
19 printf "\t</qresource>\n</RCC>\n" >> $@;
20
3 minori_qtrc = \ 21 minori_qtrc = \
4 $(top_srcdir)/rc/dark.qrc \ 22 $(top_srcdir)/rc/icons/icons.qrc \
5 $(top_srcdir)/rc/icons.qrc \ 23 $(top_srcdir)/rc/player_data.qrc \
6 $(top_srcdir)/rc/player_data.qrc 24 translations.qrc
25
26 if BUILD_WIN
27
28 minori_qtrc += $(top_srcdir)/rc/win32/dark/dark.qrc
29
30 endif
7 31
8 rc/final_qrc.cc: $(minori_qtrc) 32 rc/final_qrc.cc: $(minori_qtrc)
9 @QT_RCC@ -o $@ $(minori_qtrc) 33 @QT_RCC@ -o $@ $(minori_qtrc)
10 34
11 minori_qtheaders = \ 35 minori_qtheaders = \
150 174
151 .h_moc.cc: 175 .h_moc.cc:
152 @MKDIR_P@ -- `dirname $@` 176 @MKDIR_P@ -- `dirname $@`
153 @QT_MOC@ -o $@ $(minori_includes) $< 177 @QT_MOC@ -o $@ $(minori_includes) $<
154 178
155 SUFFIXES = .h _moc.cc 179 SUFFIXES = .h _moc.cc .ts .qm
156 SUBDIRS = $(subdirs) 180 SUBDIRS = $(subdirs)
157 ACLOCAL_AMFLAGS = -I m4 181 ACLOCAL_AMFLAGS = -I m4