]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Merge branch 'jmt/navradio'
[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)/Projects/FlightGear/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 data-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 source/FlightGear-data-$(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/777-200 \
65                 data/Aircraft/A6M2 \
66                 data/Aircraft/b1900d \
67                 data/Aircraft/bo105 \
68                 data/Aircraft/c172p \
69                 data/Aircraft/CitationX \
70                 data/Aircraft/Dragonfly \
71                 data/Aircraft/dhc2 \
72                 data/Aircraft/f-14b \
73                 data/Aircraft/j3cub \
74                 data/Aircraft/SenecaII \
75                 data/Aircraft/sopwithCamel \
76                 data/Aircraft/ufo \
77                 data/Aircraft/ZLT-NT \
78                 data/Airports \
79                 data/Astro \
80                 data/ATC \
81                 data/AUTHORS \
82                 data/ChangeLog \
83                 data/cloudlayers.xml \
84                 data/COPYING \
85                 data/D* \
86                 data/Effects \
87                 data/Fonts \
88                 data/gui \
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/N* \
99                 data/options.xml \
100                 data/preferences.xml \
101                 data/Protocol \
102                 data/README \
103                 data/Scenery/Objects \
104                 data/Scenery/Terrain \
105                 data/Shaders \
106                 data/Sounds \
107                 data/T* \
108                 data/version \
109         )
110
111 fgfs-textures-high:
112         (cd $(HOME); \
113         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
114         FlightGear/Textures.high)
115
116 # make the mini JSBsim data distribution
117 jsbsim-data:
118         (cd $(HOME); \
119         tar czvf jsbsim-data-$(VERSION).tar.gz \
120         FlightGear/Aircraft \
121         FlightGear/Engine)
122
123 # make the documentation distribution
124
125 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
126
127 fgfs-docs-tar:
128         ( cd $(HOME); \
129         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )
130
131 # fgfs-docs-zip:
132 #       ( cd $(HOME)/Projects ; \
133 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
134
135 fgfs-manual-zip:
136         ( cd $(HOME) ; \
137         zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide )
138
139 # make the win32-bin distribution
140
141 fgfs-win32-bin:
142         (cd $(HOME); \
143         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/runfgfs.bat \
144         FlightGear/bin/Win32 )
145
146 # make the win32-libs distribution (depricated)
147 win32-libs:
148         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
149         Win32/README.glut Win32/cygwinb1.dll Win32/def \
150         Win32/*.exp Win32/gen-def-from-errors.pl \
151         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
152         Win32/impdef.exe Win32/include \
153         Win32/install.exe \
154         Win32/lib Win32/zlib.lib )
155
156 # make the MacOS (MWCWP3) devel support archive
157 macos-devel:
158         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
159
160 # clean up dependencies
161 clean-deps:
162         rm -rf .deps \
163         src/.deps tests/.deps \
164         src/*/.deps \
165         src/*/*/.deps \
166         tests/.deps
167
168 # clean up after libtool
169 clean-libs:
170         rm -rf .libs src/.libs \
171                 src/*/.libs \
172                 src/*/*/.libs 
173         rm -f src/*/so_locations \
174                 src/*/*/so_locations 
175
176 # clean up after winbloze spews random case for file names :-(
177 clean-winbloze: clean-deps clean-libs
178         rm -f makefile src/Include/makefile src/makefile \
179                 src/*/makefile \
180                 src/*/*/makefile \
181                 tests/makefile
182         rm -f src/Main/fg.exe