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