You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.1 KiB
72 lines
2.1 KiB
## @file |
|
## |
|
## $Id: makefile.am 7 2010-03-01 14:55:44Z marc $ |
|
## |
|
## 1 2 3 4 5 6 7 8 |
|
## 45678901234567890123456789012345678901234567890123456789012345678901234567890 |
|
|
|
LANGS = en de fr it |
|
ALL_SRC = *.cxx *.hxx *.ui $(shell find resources -name .svn -prune -o \( -type f -o -type l \) -print) |
|
|
|
QMAKE = @QMAKE@ |
|
QMAKE_OPTIONS = @QMAKE_OPTIONS@ |
|
QMAKE_PROJECT = qmake.pro |
|
QMAKE_MAKEFILE = makefile.qmake |
|
|
|
QMAKE_TARGET = @PACKAGENAME@ |
|
|
|
TARGETS = ${QMAKE_TARGET} |
|
|
|
if BUILD_WIN |
|
QMAKE_MAKEFILE_WIN = makefile.win.qmake |
|
QMAKE_OPTIONS_WIN = ${QMAKE_OPTIONS} -win32 -spec cross-mingw-g++ |
|
QMAKE_TARGET_WIN = $(QMAKE_TARGET:%=%.exe) |
|
TARGETS += ${QMAKE_TARGET_WIN} |
|
else |
|
QMAKE_MAKEFILE_WIN = |
|
endif |
|
|
|
all: ${TARGETS} $(LANGS:%=@PACKAGENAME@_%.ts) |
|
|
|
print: |
|
@echo "LANGS=${LANGS}" |
|
@echo "ALL_SRC=${ALL_SRC}" |
|
@echo "QMAKE=${QMAKE}" |
|
@echo "QMAKE_OPTIONS=${QMAKE_OPTIONS}" |
|
@echo "QMAKE_MAKEFILE=${QMAKE_MAKEFILE}" |
|
@echo "QMAKE_TARGET=${QMAKE_TARGET}" |
|
@echo "TARGETS=${TARGETS}" |
|
@echo "QMAKE_MAKEFILE_WIN=${QMAKE_MAKEFILE_WIN}" |
|
@echo "QMAKE_OPTIONS_WIN=${QMAKE_OPTIONS_WIN}" |
|
@echo "QMAKE_TARGET_WIN=${QMAKE_TARGET_WIN}" |
|
|
|
%.qm: %.ts |
|
${LRELEASE} $< |
|
|
|
%.ts: ${ALL_SRC} |
|
${LUPDATE} @LUPDATE_ARGS@ ${QMAKE_PROJECT} |
|
|
|
if BUILD_LIN32 |
|
${QMAKE_MAKEFILE}: ${QMAKE_PROJECT} ${ALL_SRC} |
|
QMAKESPEC=linux-g++-32 ${QMAKE} ${QMAKE_OPTIONS} -o $@ $< |
|
else |
|
${QMAKE_MAKEFILE}: ${QMAKE_PROJECT} ${ALL_SRC} |
|
${QMAKE} ${QMAKE_OPTIONS} -o $@ $< |
|
endif |
|
|
|
${QMAKE_MAKEFILE_WIN}: ${QMAKE_PROJECT} ${ALL_SRC} |
|
${QMAKE} ${QMAKE_OPTIONS_WIN} -o $@ $< |
|
|
|
${QMAKE_TARGET}: ${QMAKE_MAKEFILE} ${ALL_SRC} $(LANGS:%=@PACKAGENAME@_%.qm) resources.qrc |
|
make -f ${QMAKE_MAKEFILE} |
|
|
|
${QMAKE_TARGET_WIN}: ${QMAKE_MAKEFILE_WIN} ${ALL_SRC} $(LANGS:%=@PACKAGENAME@_%.qm) resources.qrc |
|
make -f ${QMAKE_MAKEFILE_WIN} |
|
|
|
maintainer-clean-local: |
|
-rm -rf ${QMAKE_TARGET}.app |
|
|
|
CLEANFILES = ${TARGETS} $(LANGS:%=@PACKAGENAME@_%.qm) \ |
|
*.o *.obj qrc_*.cpp ui_*.h moc_*.cpp \ |
|
${QMAKE_TARGET} ${QMAKE_TARGET_WIN} |
|
MAINTAINERCLEANFILES = makefile.in ${QMAKE_MAKEFILE} ${QMAKE_MAKEFILE_WIN}
|
|
|