svn-gvsig-desktop / tags / v1_1_Build_1011 / install / launcher / izpack-launcher-1.3_linux / src / Makefile @ 12904
History | View | Annotate | Download (2.98 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` |
||
21 | #CXX_LIBS = `wx-config --libs --static` |
||
22 | 7073 | cesar | CXX = `wx/wxgtk-2.4-config --cxx` |
23 | CXX_FLAGS = `wx/wxgtk-2.4-config --cxxflags` -L./lib -L./wx/lib |
||
24 | CXX_LIBS = `wx/wxgtk-2.4-config --libs --static` |
||
25 | 6834 | jmvivo | |
26 | OS = `uname` |
||
27 | |||
28 | APP=launcher |
||
29 | SELD=selectiondialog |
||
30 | SD=statusdialog |
||
31 | |||
32 | EXEC = ${APP} |
||
33 | OBJS = ${APP}.o ${SELD}.o ${SD}.o |
||
34 | |||
35 | |||
36 | |||
37 | all: launcher |
||
38 | |||
39 | launcher: ${OBJS} |
||
40 | ${CXX} ${FLAGS} ${CXX_FLAGS} -o ${EXEC} ${OBJS} ${CXX_LIBS} |
||
41 | |||
42 | ${APP}.o: ${APP}.h ${APP}.cpp ${SELD}.h |
||
43 | ${CXX} ${FLAGS} ${CXX_FLAGS} -c ${APP}.cpp |
||
44 | |||
45 | ${SELD}.o: ${SELD}.h ${SELD}.cpp |
||
46 | ${CXX} ${FLAGS} ${CXX_FLAGS} -c ${SELD}.cpp |
||
47 | |||
48 | ${SD}.o: ${SD}.h ${SD}.cpp |
||
49 | ${CXX} ${FLAGS} ${CXX_FLAGS} -c ${SD}.cpp |
||
50 | |||
51 | install: all install_lang |
||
52 | cp ${EXEC} ../dist/${EXEC}-${OS} |
||
53 | strip ../dist/${EXEC}-${OS} |
||
54 | #cp ${EXEC}.ini ../dist/${EXEC}.ini |
||
55 | cp *.class ../dist/ |
||
56 | |||
57 | install_lang: |
||
58 | mkdir -p ../dist/fr ../dist/de ../dist/da ../dist/pt-BR ../dist/es ../dist/it ../dist/nl |
||
59 | cp fr/launcher.mo ../dist/fr |
||
60 | cp es/launcher.mo ../dist/es |
||
61 | cp de/launcher.mo ../dist/de |
||
62 | cp da/launcher.mo ../dist/da |
||
63 | cp pt-BR/launcher.mo ../dist/pt-BR |
||
64 | cp it/launcher.mo ../dist/it |
||
65 | cp nl/launcher.mo ../dist/nl |
||
66 | |||
67 | clean: |
||
68 | rm -f ${EXEC} ${OBJS} |
||
69 | |||
70 | refmsg: |
||
71 | xgettext -C -n -k_ -o launcher.pot *.cpp |
||
72 | 7980 | jmvivo | msgmerge fr/launcher.po launcher.pot -o fr/launcher.po |
73 | msgmerge es/launcher.po launcher.pot -o es/launcher.po |
||
74 | msgmerge de/launcher.po launcher.pot -o de/launcher.po |
||
75 | msgmerge da/launcher.po launcher.pot -o da/launcher.po |
||
76 | msgmerge pt-BR/launcher.po launcher.pot -o pt-BR/launcher.po |
||
77 | msgmerge it/launcher.po launcher.pot -o it/launcher.po |
||
78 | msgmerge nl/launcher.po launcher.pot -o nl/launcher.po |
||
79 | |||
80 | commsg: |
||
81 | msgfmt -o fr/launcher.mo fr/launcher.po |
||
82 | msgfmt -o es/launcher.mo es/launcher.po |
||
83 | msgfmt -o de/launcher.mo de/launcher.po |
||
84 | msgfmt -o da/launcher.mo da/launcher.po |
||
85 | msgfmt -o pt-BR/launcher.mo pt-BR/launcher.po |
||
86 | msgfmt -o it/launcher.mo it/launcher.po |
||
87 | msgfmt -o nl/launcher.mo nl/launcher.po |