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