]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Merge branch 'next' of gitorious.org:fg/flightgear into next
[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='*.tex' \
44         --exclude='*.xcf' \
45         --exclude='*/c172/Instruments.high' \
46         --exclude='*/Textures/Unused' \
47         --exclude='*/Textures/*.orig' \
48         --exclude='*/Textures.high/*.new' \
49         --exclude='*/Textures.high/*.orig' \
50         --exclude='*/Textures.high/*.save' \
51         --exclude='*/data/Data' \
52         --exclude='*/Docs/source' \
53         --exclude='*/Models/MNUAV' \
54         --exclude='*/Models/Airspace' \
55         -cjvf FlightGear-data-$(VERSION).tar.bz2 \
56                 data/AI \
57                 data/Aircraft/Generic \
58                 data/Aircraft/Instruments \
59                 data/Aircraft/Instruments-3d \
60                 data/Aircraft/UIUC \
61                 data/Aircraft/777-200 \
62                 data/Aircraft/A6M2 \
63                 data/Aircraft/b1900d \
64                 data/Aircraft/bo105 \
65                 data/Aircraft/c172p \
66                 data/Aircraft/CitationX \
67                 data/Aircraft/Dragonfly \
68                 data/Aircraft/dhc2 \
69                 data/Aircraft/f-14b \
70                 data/Aircraft/Cub \
71                 data/Aircraft/SenecaII \
72                 data/Aircraft/sopwithCamel \
73                 data/Aircraft/ufo \
74                 data/Aircraft/ZLT-NT \
75                 data/Airports \
76                 data/Astro \
77                 data/ATC \
78                 data/AUTHORS \
79                 data/ChangeLog \
80                 data/cloudlayers.xml \
81                 data/COPYING \
82                 data/D* \
83                 data/Effects \
84                 data/Environment \
85                 data/Fonts \
86                 data/gui \
87                 data/Huds \
88                 data/Input \
89                 data/joysticks.xml \
90                 data/keyboard.xml \
91                 data/Lighting \
92                 data/materials.dtd \
93                 data/materials.xml \
94                 data/mice.xml \
95                 data/Models \
96                 data/N* \
97                 data/options.xml \
98                 data/preferences.xml \
99                 data/Protocol \
100                 data/README \
101                 data/Scenery/Airports \
102                 data/Scenery/Objects \
103                 data/Scenery/Terrain \
104                 data/Shaders \
105                 data/Sounds \
106                 data/T* \
107                 data/version \
108         )
109
110 fgfs-textures-high:
111         (cd $(HOME); \
112         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
113         FlightGear/Textures.high)
114
115 # make the mini JSBsim data distribution
116 jsbsim-data:
117         (cd $(HOME); \
118         tar czvf jsbsim-data-$(VERSION).tar.gz \
119         FlightGear/Aircraft \
120         FlightGear/Engine)
121
122 # make the documentation distribution
123
124 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
125
126 fgfs-docs-tar:
127         ( cd $(HOME); \
128         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )
129
130 # fgfs-docs-zip:
131 #       ( cd $(HOME)/Projects ; \
132 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
133
134 fgfs-manual-zip:
135         ( cd $(HOME) ; \
136         zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide )
137
138 # make the win32-bin distribution
139
140 fgfs-win32-bin:
141         (cd $(HOME); \
142         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/runfgfs.bat \
143         FlightGear/bin/Win32 )
144
145 # make the win32-libs distribution (depricated)
146 win32-libs:
147         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
148         Win32/README.glut Win32/cygwinb1.dll Win32/def \
149         Win32/*.exp Win32/gen-def-from-errors.pl \
150         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
151         Win32/impdef.exe Win32/include \
152         Win32/install.exe \
153         Win32/lib Win32/zlib.lib )
154
155 # make the MacOS (MWCWP3) devel support archive
156 macos-devel:
157         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
158
159 # clean up dependencies
160 clean-deps:
161         rm -rf .deps \
162         src/.deps tests/.deps \
163         src/*/.deps \
164         src/*/*/.deps \
165         tests/.deps
166
167 # clean up after libtool
168 clean-libs:
169         rm -rf .libs src/.libs \
170                 src/*/.libs \
171                 src/*/*/.libs 
172         rm -f src/*/so_locations \
173                 src/*/*/so_locations 
174
175 # clean up after winbloze spews random case for file names :-(
176 clean-winbloze: clean-deps clean-libs
177         rm -f makefile src/Include/makefile src/makefile \
178                 src/*/makefile \
179                 src/*/*/makefile \
180                 tests/makefile
181         rm -f src/Main/fg.exe