]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Make environment-manager closest airport updating quieter, and use an event instead...
[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         projects \
12         README \
13         README.OpenAL \
14         README.plib \
15         README.OSG \
16         README.SimGear \
17         Thanks
18
19 dist-hook:
20         (cd $(top_srcdir); tar --exclude docs-mini/CVS --exclude hints/CVS \
21                 -cf - docs-mini ) | (cd $(distdir); tar xvf -)
22         rm -rf `find $(distdir)/projects -name CVS`
23
24
25 ##########################################################################
26 # extra targets to do various things ...
27 #
28 # Use "make <target>"
29 ##########################################################################
30
31
32 # make the base distribution with textures, sounds and a bit of
33 # scenery, and all the other associated files
34
35 # note, fedora core tar does case insensitive wildcard matching for
36 # directories, but apparently not files ... some stupid reason. :-(
37
38 data-tar:
39         (cd ..; \
40         tar \
41         --exclude=CVS \
42         --exclude='*~' \
43         --exclude='*.bak' \
44         --exclude='*.tex' \
45         --exclude='*.xcf' \
46         --exclude='*/c172/Instruments.high' \
47         --exclude='*/Textures/Unused' \
48         --exclude='*/Textures/*.orig' \
49         --exclude='*/Textures.high/*.new' \
50         --exclude='*/Textures.high/*.orig' \
51         --exclude='*/Textures.high/*.save' \
52         --exclude='*/data/Data' \
53         --exclude='*/Docs/source' \
54         --exclude='*/Models/MNUAV' \
55         --exclude='*/Models/Airspace' \
56         -cjvf FlightGear-data-$(VERSION).tar.bz2 \
57                 data/AI \
58                 data/Aircraft/Generic \
59                 data/Aircraft/Instruments \
60                 data/Aircraft/Instruments-3d \
61                 data/Aircraft/UIUC \
62                 data/Aircraft/777-200 \
63                 data/Aircraft/A6M2 \
64                 data/Aircraft/ASK13 \
65                 data/Aircraft/b1900d \
66                 data/Aircraft/bo105 \
67                 data/Aircraft/c172p \
68                 data/Aircraft/CitationX \
69                 data/Aircraft/Dragonfly \
70                 data/Aircraft/dhc2 \
71                 data/Aircraft/f-14b \
72                 data/Aircraft/Cub \
73                 data/Aircraft/SenecaII \
74                 data/Aircraft/sopwithCamel \
75                 data/Aircraft/ufo \
76                 data/Aircraft/ZLT-NT \
77                 data/Airports \
78                 data/Astro \
79                 data/ATC \
80                 data/AUTHORS \
81                 data/ChangeLog \
82                 data/COPYING \
83                 data/D* \
84                 data/Effects \
85                 data/Environment \
86                 data/Fonts \
87                 data/gui \
88                 data/HLA \
89                 data/Huds \
90                 data/Input \
91                 data/joysticks.xml \
92                 data/keyboard.xml \
93                 data/Lighting \
94                 data/materials.dtd \
95                 data/materials.xml \
96                 data/mice.xml \
97                 data/Models \
98                 data/MP \
99                 data/N* \
100                 data/options.xml \
101                 data/preferences.xml \
102                 data/Protocol \
103                 data/README \
104                 data/Scenery/Airports \
105                 data/Scenery/Objects \
106                 data/Scenery/Terrain \
107                 data/Shaders \
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