]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
support filtering to show only a subset of entries
[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='*/Docs/source' \
50         --exclude='*/Models/MNUAV' \
51         --exclude='*/Models/Airspace' \
52         -cjvf fgfs-base-$(VERSION).tar.bz2 \
53                 data/Aircraft/Generic \
54                 data/Aircraft/Instruments \
55                 data/Aircraft/Instruments-3d \
56                 data/Aircraft/UIUC \
57                 data/Aircraft/737-300 \
58                 data/Aircraft/A-10 \
59                 data/Aircraft/bf109 \
60                 data/Aircraft/bo105 \
61                 data/Aircraft/c172 \
62                 data/Aircraft/c172p \
63                 data/Aircraft/c310 \
64                 data/Aircraft/c310u3a \
65                 data/Aircraft/Citation-Bravo \
66                 data/Aircraft/f16 \
67                 data/Aircraft/j3cub \
68                 data/Aircraft/Hunter \
69                 data/Aircraft/p51d \
70                 data/Aircraft/pa28-161 \
71                 data/Aircraft/Rascal \
72                 data/Aircraft/T38 \
73                 data/Aircraft/ufo \
74                 data/Aircraft/wrightFlyer1903 \
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/Fonts \
84                 data/gui \
85                 data/Huds \
86                 data/Input \
87                 data/joysticks.xml \
88                 data/keyboard.xml \
89                 data/Lighting \
90                 data/materials.dtd \
91                 data/materials.xml \
92                 data/mice.xml \
93                 data/Models \
94                 data/N* \
95                 data/options.xml \
96                 data/preferences.xml \
97                 data/Protocol \
98                 data/README \
99                 data/Scenery/Objects \
100                 data/Scenery/Terrain \
101                 data/Sounds \
102                 data/T* \
103                 data/version \
104         )
105
106 fgfs-textures-high:
107         (cd $(HOME); \
108         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
109         FlightGear/Textures.high)
110
111 # make the mini JSBsim data distribution
112 jsbsim-data:
113         (cd $(HOME); \
114         tar czvf jsbsim-data-$(VERSION).tar.gz \
115         FlightGear/Aircraft \
116         FlightGear/Engine)
117
118 # make the documentation distribution
119
120 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
121
122 fgfs-docs-tar:
123         ( cd $(HOME); \
124         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )
125
126 # fgfs-docs-zip:
127 #       ( cd $(HOME)/Projects ; \
128 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
129
130 fgfs-manual-zip:
131         ( cd $(HOME) ; \
132         zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide )
133
134 # make the win32-bin distribution
135
136 fgfs-win32-bin:
137         (cd $(HOME); \
138         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/runfgfs.bat \
139         FlightGear/bin/Win32 )
140
141 # make the win32-libs distribution (depricated)
142 win32-libs:
143         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
144         Win32/README.glut Win32/cygwinb1.dll Win32/def \
145         Win32/*.exp Win32/gen-def-from-errors.pl \
146         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
147         Win32/impdef.exe Win32/include \
148         Win32/install.exe \
149         Win32/lib Win32/zlib.lib )
150
151 # make the MacOS (MWCWP3) devel support archive
152 macos-devel:
153         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
154
155 # clean up dependencies
156 clean-deps:
157         rm -rf .deps \
158         src/.deps tests/.deps \
159         src/*/.deps \
160         src/*/*/.deps \
161         tests/.deps
162
163 # clean up after libtool
164 clean-libs:
165         rm -rf .libs src/.libs \
166                 src/*/.libs \
167                 src/*/*/.libs 
168         rm -f src/*/so_locations \
169                 src/*/*/so_locations 
170
171 # clean up after winbloze spews random case for file names :-(
172 clean-winbloze: clean-deps clean-libs
173         rm -f makefile src/Include/makefile src/makefile \
174                 src/*/makefile \
175                 src/*/*/makefile \
176                 tests/makefile
177         rm -f src/Main/fg.exe