]> git.mxchange.org Git - flightgear.git/blob - Makefile.extra
...
[flightgear.git] / Makefile.extra
1 # extra targets to do various things ...
2 #
3 # Use "make -f Makefile.extra <target>
4
5
6 VERSION=0.54
7 FG_ROOT=$(HOME)/FlightGear
8
9 # make the base distribution with textures, sounds and a bit of
10 # scenery, and all the other associated files
11 fg-base-tar:
12         (cd $(HOME); \
13         tar czvf fgfs-base-$(VERSION).tar.gz \
14         FlightGear/[A-R]* \
15         FlightGear/Scenery/w120n030/w111n033 \
16         FlightGear/Sounds \
17         FlightGear/Textures FlightGear/Thanks \
18         FlightGear/[m-r]* )
19
20 fg-base-zip:
21         (cd $(HOME); \
22         zip -r fgfs-base-$(VERSION).zip \
23         FlightGear/[A-R]* \
24         FlightGear/Scenery/w120n030/w111n033 \
25         FlightGear/Sounds \
26         FlightGear/Textures FlightGear/Thanks \
27         FlightGear/[m-r]* )
28
29 # make the win32-bin distribution
30 fg-win32-bin:
31         (cd $(HOME); \
32         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/bin )
33
34 # make the win32-libs distribution
35 win32-libs:
36         ( zip -r win32-libs-$(VERSION).zip Win32/Makefile \
37         Win32/README.glut Win32/cygwinb19.dll Win32/def \
38         Win32/*.exp Win32/gen-def-from-errors.pl \
39         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
40         Win32/impdef.exe Win32/include \
41         Win32/install.exe \
42         Win32/lib Win32/zlib.lib )
43
44 # clean up dependencies
45 clean-deps:
46         rm -rf .deps \
47         Lib/.deps Simulator/.deps Tools/.deps Test/.deps \
48         Lib/*/.deps Simulator/*/.deps Tools/*/.deps \
49         Lib/*/*/.deps Simulator/*/*/.deps Tools/*/*/.deps \
50         Tests/.deps
51
52 # clean up after libtool
53 clean-libs:
54         rm -rf .libs Lib/.libs Simulator/.libs Tools/.libs \
55                 Lib/*/.libs Simulator/*/.libs Tools/*/.libs \
56                 Lib/*/*/.libs Simulator/*/*/.libs Tools/*/*/.libs
57         rm -f Simulator/*/so_locations Lib/*/so_locations \
58                 Simulator/*/*/so_locations Lib/*/*/so_locations
59
60 # clean up after winbloze spews random case for file names :-(
61 clean-winbloze: clean-deps clean-libs
62         rm -f makefile Include/makefile Lib/makefile Simulator/makefile \
63                 Tools/makefile \
64                 Lib/*/makefile Simulator/*/makefile Tools/*/makefile \
65                 Lib/*/*/makefile Simulator/*/*/makefile Tools/*/*/makefile
66         rm -f Src/Main/fg.exe Tools/*/*.exe