]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
tweaks.
[flightgear.git] / Makefile.am
1 SUBDIRS = Include Lib Simulator Tools Tests
2
3 EXTRA_DIST = README.Unix README.Linux README.Win32 \
4         README.autoconf README.running Thanks acsite.m4
5
6 dist-hook:
7         tar cf - Hints | (cd $(distdir); tar xvf -)
8
9
10 ##########################################################################
11 # extra targets to do various things ...
12 #
13 # Use "make <target>"
14 ##########################################################################
15
16 FG_ROOT=$(HOME)/FlightGear
17
18 # refresh the fg-root installation
19 update-fg-root:
20         tar cf - AUTHORS COPYING NEWS README README.Linux README.Unix \
21                 README.Win32 README.anoncvs README.autoconf README.running \
22                 Thanks \
23                 | (cd $HOME/FlightGear; tar xvf -)
24
25 # make the base distribution with textures, sounds and a bit of
26 # scenery, and all the other associated files
27 fgfs-base: fgfs-base-tar fgfs-base-zip
28
29 fgfs-base-tar:
30         (cd $(HOME); \
31         tar czvf fgfs-base-$(VERSION).tar.gz \
32         FlightGear/[A-R]* \
33         FlightGear/Scenery/w120n030/w111n033 \
34         FlightGear/Sounds \
35         FlightGear/Textures FlightGear/Thanks \
36         FlightGear/[m-r]* )
37
38 fgfs-base-zip:
39         (cd $(HOME); \
40         zip -r fgfs-base-$(VERSION).zip \
41         FlightGear/[A-R]* \
42         FlightGear/Scenery/w120n030/w111n033 \
43         FlightGear/Sounds \
44         FlightGear/Textures FlightGear/Thanks \
45         FlightGear/[m-r]* )
46
47 # make the documentation distribution
48 fgfs-docs: fgfs-docs-tar fgfs-docs-zip
49
50 fgfs-docs-tar:
51         tar czvf fgfs-docs-$(VERSION).tar.gz Docs
52
53 # make the documentation distribution
54 fgfs-docs-zip:
55         zip -r fgfs-docs-$(VERSION).zip Docs
56
57 # make the win32-bin distribution
58 fgfs-win32-bin:
59         (cd $(HOME); \
60         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/bin )
61
62 # make the win32-libs distribution
63 win32-libs:
64         ( zip -r win32-libs-$(VERSION).zip Win32/Makefile \
65         Win32/README.glut Win32/cygwinb19.dll Win32/def \
66         Win32/*.exp Win32/gen-def-from-errors.pl \
67         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
68         Win32/impdef.exe Win32/include \
69         Win32/install.exe \
70         Win32/lib Win32/zlib.lib )
71
72 # clean up dependencies
73 clean-deps:
74         rm -rf .deps \
75         Lib/.deps Simulator/.deps Tools/.deps Test/.deps \
76         Lib/*/.deps Simulator/*/.deps Tools/*/.deps \
77         Lib/*/*/.deps Simulator/*/*/.deps Tools/*/*/.deps \
78         Tests/.deps
79
80 # clean up after libtool
81 clean-libs:
82         rm -rf .libs Lib/.libs Simulator/.libs Tools/.libs \
83                 Lib/*/.libs Simulator/*/.libs Tools/*/.libs \
84                 Lib/*/*/.libs Simulator/*/*/.libs Tools/*/*/.libs
85         rm -f Simulator/*/so_locations Lib/*/so_locations \
86                 Simulator/*/*/so_locations Lib/*/*/so_locations
87
88 # clean up after winbloze spews random case for file names :-(
89 clean-winbloze: clean-deps clean-libs
90         rm -f makefile Include/makefile Lib/makefile Simulator/makefile \
91                 Tools/makefile \
92                 Lib/*/makefile Simulator/*/makefile Tools/*/makefile \
93                 Lib/*/*/makefile Simulator/*/*/makefile Tools/*/*/makefile \
94                 Tests/makefile
95         rm -f Src/Main/fg.exe Tools/*/*.exe