]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Additional fixes for new DME type codes.
[flightgear.git] / Makefile.am
1 SUBDIRS = \
2         tests \
3         man \
4         scripts \
5         src \
6         utils
7
8 EXTRA_DIST = \
9         Thanks \
10         acinclude.m4 \
11         autogen.sh \
12         FlightGear.dsp \
13         FlightGear.dsw
14
15 dist-hook:
16         (cd $(top_srcdir); $(HOME)/Projects/FlightGear/admin/am2dsp.pl)
17         (cd $(top_srcdir); tar --exclude docs-mini/CVS --exclude hints/CVS \
18                 -cf - docs-mini ) | (cd $(distdir); tar xvf -)
19
20
21 ##########################################################################
22 # extra targets to do various things ...
23 #
24 # Use "make <target>"
25 ##########################################################################
26
27
28 # make the base distribution with textures, sounds and a bit of
29 # scenery, and all the other associated files
30
31 # note, fedora core tar does case insensitive wildcard matching for
32 # directories, but apparently not files ... some stupid reason. :-(
33
34 fgfs-base-tar:
35         (cd ..; \
36         tar \
37         --exclude=CVS \
38         --exclude='*~' \
39         --exclude='*.tex' \
40         --exclude='*.xcf' \
41         --exclude='*/c172/Instruments.high' \
42         --exclude='*/Textures/Unused' \
43         --exclude='*/Textures.high/*.save' \
44         --exclude='*/Textures.high/*.new' \
45         --exclude='*/Docs/source' \
46         --exclude='*/Models/MNUAV' \
47         --exclude='*/Models/Airspace' \
48         -cjvf fgfs-base-$(VERSION).tar.bz2 \
49                 data/Aircraft/Generic \
50                 data/Aircraft/Instruments \
51                 data/Aircraft/Instruments-3d \
52                 data/Aircraft/UIUC \
53                 data/Aircraft/737 \
54                 data/Aircraft/A-10 \
55                 data/Aircraft/bo105 \
56                 data/Aircraft/c172 \
57                 data/Aircraft/c172p \
58                 data/Aircraft/c310 \
59                 data/Aircraft/c310u3a \
60                 data/Aircraft/Citation \
61                 data/Aircraft/f16 \
62                 data/Aircraft/j3cub \
63                 data/Aircraft/Hunter \
64                 data/Aircraft/p51d \
65                 data/Aircraft/pa28-161 \
66                 data/Aircraft/T38 \
67                 data/Aircraft/ufo \
68                 data/Aircraft/wrightFlyer1903 \
69                 data/Airports \
70                 data/Astro \
71                 data/ATC \
72                 data/AUTHORS \
73                 data/ChangeLog \
74                 data/cloudlayers.xml \
75                 data/COPYING \
76                 data/D* \
77                 data/Fonts \
78                 data/gui \
79                 data/Huds \
80                 data/Input \
81                 data/keyboard.xml \
82                 data/Lighting \
83                 data/materials.dtd \
84                 data/materials.xml \
85                 data/mice.xml \
86                 data/Models \
87                 data/N* \
88                 data/options.xml \
89                 data/preferences.xml \
90                 data/Protocol \
91                 data/README \
92                 data/Scenery \
93                 data/Sounds \
94                 data/T* \
95                 data/version \
96         )
97
98 fgfs-textures-high:
99         (cd $(HOME); \
100         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
101         FlightGear/Textures.high)
102
103 # make the mini JSBsim data distribution
104 jsbsim-data:
105         (cd $(HOME); \
106         tar czvf jsbsim-data-$(VERSION).tar.gz \
107         FlightGear/Aircraft \
108         FlightGear/Engine)
109
110 # make the documentation distribution
111
112 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
113
114 fgfs-docs-tar:
115         ( cd $(HOME); \
116         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )
117
118 # fgfs-docs-zip:
119 #       ( cd $(HOME)/Projects ; \
120 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
121
122 fgfs-manual-zip:
123         ( cd $(HOME) ; \
124         zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide )
125
126 # make the win32-bin distribution
127
128 fgfs-win32-bin:
129         (cd $(HOME); \
130         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/runfgfs.bat \
131         FlightGear/bin/Win32 )
132
133 # make the win32-libs distribution (depricated)
134 win32-libs:
135         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
136         Win32/README.glut Win32/cygwinb1.dll Win32/def \
137         Win32/*.exp Win32/gen-def-from-errors.pl \
138         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
139         Win32/impdef.exe Win32/include \
140         Win32/install.exe \
141         Win32/lib Win32/zlib.lib )
142
143 # make the MacOS (MWCWP3) devel support archive
144 macos-devel:
145         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
146
147 # clean up dependencies
148 clean-deps:
149         rm -rf .deps \
150         src/.deps tests/.deps \
151         src/*/.deps \
152         src/*/*/.deps \
153         tests/.deps
154
155 # clean up after libtool
156 clean-libs:
157         rm -rf .libs src/.libs \
158                 src/*/.libs \
159                 src/*/*/.libs 
160         rm -f src/*/so_locations \
161                 src/*/*/so_locations 
162
163 # clean up after winbloze spews random case for file names :-(
164 clean-winbloze: clean-deps clean-libs
165         rm -f makefile src/Include/makefile src/makefile \
166                 src/*/makefile \
167                 src/*/*/makefile \
168                 tests/makefile
169         rm -f src/Main/fg.exe