]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Balloon and MagicCarpet already moved to SP_FDM
[flightgear.git] / Makefile.am
1 SUBDIRS = \
2         tests \
3         man \
4         scripts \
5         src \
6         utils
7
8 EXTRA_DIST = \
9         acinclude.m4 \
10         autogen.sh \
11         FlightGear.dsp \
12         FlightGear.dsw \
13         projects \
14         README \
15         README.OpenAL \
16         README.plib \
17         README.OSG \
18         README.SimGear \
19         Thanks
20
21 dist-hook:
22         (cd $(top_srcdir); $(HOME)/src/FlightGear-0.9/admin/am2dsp.pl)
23         (cd $(top_srcdir); tar --exclude docs-mini/CVS --exclude hints/CVS \
24                 -cf - docs-mini ) | (cd $(distdir); tar xvf -)
25         rm -rf `find $(distdir)/projects -name CVS`
26
27
28 ##########################################################################
29 # extra targets to do various things ...
30 #
31 # Use "make <target>"
32 ##########################################################################
33
34
35 # make the base distribution with textures, sounds and a bit of
36 # scenery, and all the other associated files
37
38 # note, fedora core tar does case insensitive wildcard matching for
39 # directories, but apparently not files ... some stupid reason. :-(
40
41 fgfs-base-tar:
42         (cd ..; \
43         tar \
44         --exclude=CVS \
45         --exclude='*~' \
46         --exclude='*.tex' \
47         --exclude='*.xcf' \
48         --exclude='*/c172/Instruments.high' \
49         --exclude='*/Textures/Unused' \
50         --exclude='*/Textures/*.orig' \
51         --exclude='*/Textures.high/*.new' \
52         --exclude='*/Textures.high/*.orig' \
53         --exclude='*/Textures.high/*.save' \
54         --exclude='*/data/Data' \
55         --exclude='*/Docs/source' \
56         --exclude='*/Models/MNUAV' \
57         --exclude='*/Models/Airspace' \
58         -cjvf fgfs-base-$(VERSION).tar.bz2 \
59                 data/AI \
60                 data/Aircraft/Generic \
61                 data/Aircraft/Instruments \
62                 data/Aircraft/Instruments-3d \
63                 data/Aircraft/UIUC \
64                 data/Aircraft/737-300 \
65                 data/Aircraft/A-10 \
66                 data/Aircraft/bf109 \
67                 data/Aircraft/bo105 \
68                 data/Aircraft/c172 \
69                 data/Aircraft/c172p \
70                 data/Aircraft/c310 \
71                 data/Aircraft/c310u3a \
72                 data/Aircraft/Citation-Bravo \
73                 data/Aircraft/f16 \
74                 data/Aircraft/j3cub \
75                 data/Aircraft/Hunter \
76                 data/Aircraft/p51d \
77                 data/Aircraft/pa28-161 \
78                 data/Aircraft/Rascal \
79                 data/Aircraft/T38 \
80                 data/Aircraft/ufo \
81                 data/Aircraft/wrightFlyer1903 \
82                 data/Airports \
83                 data/Astro \
84                 data/ATC \
85                 data/AUTHORS \
86                 data/ChangeLog \
87                 data/cloudlayers.xml \
88                 data/COPYING \
89                 data/D* \
90                 data/Fonts \
91                 data/gui \
92                 data/Huds \
93                 data/Input \
94                 data/joysticks.xml \
95                 data/keyboard.xml \
96                 data/Lighting \
97                 data/materials.dtd \
98                 data/materials.xml \
99                 data/mice.xml \
100                 data/Models \
101                 data/N* \
102                 data/options.xml \
103                 data/preferences.xml \
104                 data/Protocol \
105                 data/README \
106                 data/Scenery/Objects \
107                 data/Scenery/Terrain \
108                 data/Sounds \
109                 data/T* \
110                 data/version \
111         )
112
113 fgfs-textures-high:
114         (cd $(HOME); \
115         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
116         FlightGear/Textures.high)
117
118 # make the mini JSBsim data distribution
119 jsbsim-data:
120         (cd $(HOME); \
121         tar czvf jsbsim-data-$(VERSION).tar.gz \
122         FlightGear/Aircraft \
123         FlightGear/Engine)
124
125 # make the documentation distribution
126
127 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
128
129 fgfs-docs-tar:
130         ( cd $(HOME); \
131         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )
132
133 # fgfs-docs-zip:
134 #       ( cd $(HOME)/Projects ; \
135 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
136
137 fgfs-manual-zip:
138         ( cd $(HOME) ; \
139         zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide )
140
141 # make the win32-bin distribution
142
143 fgfs-win32-bin:
144         (cd $(HOME); \
145         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/runfgfs.bat \
146         FlightGear/bin/Win32 )
147
148 # make the win32-libs distribution (depricated)
149 win32-libs:
150         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
151         Win32/README.glut Win32/cygwinb1.dll Win32/def \
152         Win32/*.exp Win32/gen-def-from-errors.pl \
153         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
154         Win32/impdef.exe Win32/include \
155         Win32/install.exe \
156         Win32/lib Win32/zlib.lib )
157
158 # make the MacOS (MWCWP3) devel support archive
159 macos-devel:
160         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
161
162 # clean up dependencies
163 clean-deps:
164         rm -rf .deps \
165         src/.deps tests/.deps \
166         src/*/.deps \
167         src/*/*/.deps \
168         tests/.deps
169
170 # clean up after libtool
171 clean-libs:
172         rm -rf .libs src/.libs \
173                 src/*/.libs \
174                 src/*/*/.libs 
175         rm -f src/*/so_locations \
176                 src/*/*/so_locations 
177
178 # clean up after winbloze spews random case for file names :-(
179 clean-winbloze: clean-deps clean-libs
180         rm -f makefile src/Include/makefile src/makefile \
181                 src/*/makefile \
182                 src/*/*/makefile \
183                 tests/makefile
184         rm -f src/Main/fg.exe