svn-gvsig-desktop / tags / v1_1_Build_1009 / install / launcher / izpack-launcher-1.3_linux / src / Makefile.wxconfig @ 12649
History | View | Annotate | Download (2.85 KB)
1 | 6834 | jmvivo | # Makefile for systems where 'wx-config' is available. |
---|---|---|---|
2 | # This works mainly on Unix-like systems (Linux, *BSD) and MinGW + wxWidgets 2.5.x |
||
3 | # |
||
4 | # 'all' ---> builds the executable. |
||
5 | # 'clean' ---> removes the compilation-generated files. |
||
6 | # 'install' ---> puts the executbale in 'dist'. |
||
7 | # 'refmsg' ---> Invokes xgettext to produce the reference .pot file. |
||
8 | # You can then use it to produce the translations or use |
||
9 | # gnu's 'msgmerge $lang/launcher.po (reference)launcher.pot' to update existing ones. |
||
10 | # where $lang is your language in which you translate i.e. fr for french |
||
11 | 7980 | jmvivo | # finally use ('commsg' target)gnu's 'msgfmt -o outputfile' to convert the translation |
12 | 6834 | jmvivo | # into the expected binary file 'launcher.mo' in your lang-folder |
13 | # recognized by the i18n-system of wxWindows |
||
14 | 7980 | jmvivo | # 'commsg' ----> use gnu's 'msgfmt -o outputfile' to convert the translation |
15 | # into the expected binary file 'launcher.mo' in your lang-folder |
||
16 | # recognized by the i18n-system of wxWindows |
||
17 | 6834 | jmvivo | |
18 | FLAGS = -Wall -O -pipe |
||
19 | CXX = `wx-config --cxx` |
||
20 | CXX_FLAGS = `wx-config --cxxflags --debug=no` |
||
21 | CXX_LIBS = `wx-config --libs --static=yes --debug=no` |
||
22 | |||
23 | OS = `uname` |
||
24 | |||
25 | APP=launcher |
||
26 | SELD=selectiondialog |
||
27 | SD=statusdialog |
||
28 | |||
29 | EXEC = ${APP} |
||
30 | OBJS = ${APP}.o ${SELD}.o ${SD}.o |
||
31 | |||
32 | |||
33 | |||
34 | all: launcher |
||
35 | |||
36 | launcher: ${OBJS} |
||
37 | ${CXX} ${FLAGS} ${CXX_FLAGS} -o ${EXEC} ${OBJS} ${CXX_LIBS} |
||
38 | |||
39 | ${APP}.o: ${APP}.h ${APP}.cpp ${FD}.h |
||
40 | ${CXX} ${FLAGS} ${CXX_FLAGS} -c ${APP}.cpp |
||
41 | |||
42 | ${SELD}.o: ${SELD}.h ${SELD}.cpp |
||
43 | ${CXX} ${FLAGS} ${CXX_FLAGS} -c ${SELD}.cpp |
||
44 | |||
45 | ${SD}.o: ${SD}.h ${SD}.cpp |
||
46 | ${CXX} ${FLAGS} ${CXX_FLAGS} -c ${SD}.cpp |
||
47 | |||
48 | install: all install_lang |
||
49 | cp ${EXEC} ../dist/${EXEC}-${OS} |
||
50 | strip ../dist/${EXEC}-${OS} |
||
51 | cp ${EXEC}.ini ../dist/${EXEC}.ini |
||
52 | cp *.class ../dist/ |
||
53 | |||
54 | install_lang: |
||
55 | mkdir -p ../dist/fr ../dist/de ../dist/da ../dist/pt-BR ../dist/es ../dist/it ../dist/nl |
||
56 | cp fr/launcher.mo ../dist/fr |
||
57 | cp es/launcher.mo ../dist/es |
||
58 | cp de/launcher.mo ../dist/de |
||
59 | cp da/launcher.mo ../dist/da |
||
60 | cp pt-BR/launcher.mo ../dist/pt-BR |
||
61 | cp it/launcher.mo ../dist/it |
||
62 | cp nl/launcher.mo ../dist/nl |
||
63 | |||
64 | clean: |
||
65 | rm -f ${EXEC} ${OBJS} |
||
66 | |||
67 | refmsg: |
||
68 | xgettext -C -n -k_ -o launcher.pot *.cpp |
||
69 | 7980 | jmvivo | msgmerge fr/launcher.po laucher.pot -o fr/launcher.po |
70 | msgmerge es/launcher.po laucher.pot -o es/launcher.po |
||
71 | msgmerge de/launcher.po laucher.pot -o de/launcher.po |
||
72 | msgmerge da/launcher.po laucher.pot -o da/launcher.po |
||
73 | msgmerge pt-BR/launcher.po laucher.pot -o pt-BR/launcher.po |
||
74 | msgmerge it/launcher.po laucher.pot -o it/launcher.po |
||
75 | msgmerge nl/launcher.po laucher.pot -o nl/launcher.po |
||
76 | |||
77 | commsg: |
||
78 | msgfmt -o fr/launcher.mo fr/launcher.po |
||
79 | msgfmt -o es/launcher.mo es/launcher.po |
||
80 | msgfmt -o de/launcher.mo de/launcher.po |
||
81 | msgfmt -o da/launcher.mo da/launcher.po |
||
82 | msgfmt -o pt-BR/launcher.mo pt-BR/launcher.po |
||
83 | msgfmt -o it/launcher.mo it/launcher.po |
||
84 | msgfmt -o nl/launcher.mo nl/launcher.po |