]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
interpret negative dialog <x> and <y> coordinates as distance from the
[flightgear.git] / Makefile.am
1 SUBDIRS = \
2         tests \
3         man \
4         scripts \
5         src \
6         utils
7
8 EXTRA_DIST = \
9         Thanks \
10         acinclude.m4 \
11         autogen.sh \
12         FlightGear.dsp \
13         FlightGear.dsw
14
15 dist-hook:
16         (cd $(top_srcdir); $(HOME)/Projects/FlightGear/admin/am2dsp.pl)
17         (cd $(top_srcdir); tar --exclude docs-mini/CVS --exclude hints/CVS \
18                 -cf - docs-mini ) | (cd $(distdir); tar xvf -)
19
20
21 ##########################################################################
22 # extra targets to do various things ...
23 #
24 # Use "make <target>"
25 ##########################################################################
26
27
28 # make the base distribution with textures, sounds and a bit of
29 # scenery, and all the other associated files
30
31 fgfs-base-tar:
32         (cd ..; \
33         tar \
34         --exclude=CVS \
35         --exclude='*~' \
36         --exclude='*.tex' \
37         --exclude='*.xcf' \
38         --exclude='*/c172/Instruments.high' \
39         --exclude='*/Textures/Unused' \
40         --exclude='*/Textures.high/*.save' \
41         --exclude='*/Textures.high/*.new' \
42         --exclude='*/Docs/source' \
43         -cvf - \
44                 data/ATC \
45                 data/AUTHORS \
46                 data/Aircraft/Generic \
47                 data/Aircraft/Instruments \
48                 data/Aircraft/Instruments-3d \
49                 data/Aircraft/UIUC \
50                 data/Aircraft/737 \
51                 data/Aircraft/A-10 \
52                 data/Aircraft/bo105 \
53                 data/Aircraft/c172 \
54                 data/Aircraft/c172p \
55                 data/Aircraft/c310 \
56                 data/Aircraft/c310u3a \
57                 data/Aircraft/Citation \
58                 data/Aircraft/f16 \
59                 data/Aircraft/j3cub \
60                 data/Aircraft/Hunter \
61                 data/Aircraft/p51d \
62                 data/Aircraft/pa28-161 \
63                 data/Aircraft/ufo \
64                 data/Aircraft/wrightFlyer1903 \
65                 data/Airports \
66                 data/Astro \
67                 data/[C-H]* \
68                 data/Input \
69                 data/[J-R]* \
70                 data/Scenery \
71                 data/Sounds \
72                 data/[T-W]* \
73                 data/gui \
74                 data/[j-p]* \
75                 data/version \
76         | bzip2 --best > fgfs-base-$(VERSION).tar.bz2 \
77         )
78
79 fgfs-textures-high:
80         (cd $(HOME); \
81         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
82         FlightGear/Textures.high)
83
84 # make the mini JSBsim data distribution
85 jsbsim-data:
86         (cd $(HOME); \
87         tar czvf jsbsim-data-$(VERSION).tar.gz \
88         FlightGear/Aircraft \
89         FlightGear/Engine)
90
91 # make the documentation distribution
92
93 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
94
95 fgfs-docs-tar:
96         ( cd $(HOME); \
97         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )
98
99 # fgfs-docs-zip:
100 #       ( cd $(HOME)/Projects ; \
101 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
102
103 fgfs-manual-zip:
104         ( cd $(HOME) ; \
105         zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide )
106
107 # make the win32-bin distribution
108
109 fgfs-win32-bin:
110         (cd $(HOME); \
111         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/runfgfs.bat \
112         FlightGear/bin/Win32 )
113
114 # make the win32-libs distribution (depricated)
115 win32-libs:
116         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
117         Win32/README.glut Win32/cygwinb1.dll Win32/def \
118         Win32/*.exp Win32/gen-def-from-errors.pl \
119         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
120         Win32/impdef.exe Win32/include \
121         Win32/install.exe \
122         Win32/lib Win32/zlib.lib )
123
124 # make the MacOS (MWCWP3) devel support archive
125 macos-devel:
126         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
127
128 # clean up dependencies
129 clean-deps:
130         rm -rf .deps \
131         src/.deps tests/.deps \
132         src/*/.deps \
133         src/*/*/.deps \
134         tests/.deps
135
136 # clean up after libtool
137 clean-libs:
138         rm -rf .libs src/.libs \
139                 src/*/.libs \
140                 src/*/*/.libs 
141         rm -f src/*/so_locations \
142                 src/*/*/so_locations 
143
144 # clean up after winbloze spews random case for file names :-(
145 clean-winbloze: clean-deps clean-libs
146         rm -f makefile src/Include/makefile src/makefile \
147                 src/*/makefile \
148                 src/*/*/makefile \
149                 tests/makefile
150         rm -f src/Main/fg.exe