]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Merge branch 'next' of D:\Git_New\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/j3cub \
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/Fonts \
85                 data/gui \
86                 data/Huds \
87                 data/Input \
88                 data/joysticks.xml \
89                 data/keyboard.xml \
90                 data/Lighting \
91                 data/materials.dtd \
92                 data/materials.xml \
93                 data/mice.xml \
94                 data/Models \
95                 data/N* \
96                 data/options.xml \
97                 data/preferences.xml \
98                 data/Protocol \
99                 data/README \
100                 data/Scenery/Airports \
101                 data/Scenery/Objects \
102                 data/Scenery/Terrain \
103                 data/Shaders \
104                 data/Sounds \
105                 data/T* \
106                 data/version \
107         )
108
109 fgfs-textures-high:
110         (cd $(HOME); \
111         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
112         FlightGear/Textures.high)
113
114 # make the mini JSBsim data distribution
115 jsbsim-data:
116         (cd $(HOME); \
117         tar czvf jsbsim-data-$(VERSION).tar.gz \
118         FlightGear/Aircraft \
119         FlightGear/Engine)
120
121 # make the documentation distribution
122
123 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
124
125 fgfs-docs-tar:
126         ( cd $(HOME); \
127         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )
128
129 # fgfs-docs-zip:
130 #       ( cd $(HOME)/Projects ; \
131 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
132
133 fgfs-manual-zip:
134         ( cd $(HOME) ; \
135         zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide )
136
137 # make the win32-bin distribution
138
139 fgfs-win32-bin:
140         (cd $(HOME); \
141         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/runfgfs.bat \
142         FlightGear/bin/Win32 )
143
144 # make the win32-libs distribution (depricated)
145 win32-libs:
146         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
147         Win32/README.glut Win32/cygwinb1.dll Win32/def \
148         Win32/*.exp Win32/gen-def-from-errors.pl \
149         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
150         Win32/impdef.exe Win32/include \
151         Win32/install.exe \
152         Win32/lib Win32/zlib.lib )
153
154 # make the MacOS (MWCWP3) devel support archive
155 macos-devel:
156         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
157
158 # clean up dependencies
159 clean-deps:
160         rm -rf .deps \
161         src/.deps tests/.deps \
162         src/*/.deps \
163         src/*/*/.deps \
164         tests/.deps
165
166 # clean up after libtool
167 clean-libs:
168         rm -rf .libs src/.libs \
169                 src/*/.libs \
170                 src/*/*/.libs 
171         rm -f src/*/so_locations \
172                 src/*/*/so_locations 
173
174 # clean up after winbloze spews random case for file names :-(
175 clean-winbloze: clean-deps clean-libs
176         rm -f makefile src/Include/makefile src/makefile \
177                 src/*/makefile \
178                 src/*/*/makefile \
179                 tests/makefile
180         rm -f src/Main/fg.exe