]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Convert altimeter to millibars for the UK
[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-0.9/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 fgfs-base-tar:
32         (cd ..; \
33         tar \
34         --exclude=CVS \
35         --exclude='*~' \
36         --exclude='*.xcf' \
37         --exclude='*/c172/Instruments.high' \
38         --exclude='*/Textures/Unused' \
39         --exclude='*/Textures.high/*.save' \
40         --exclude='*/Textures.high/*.new' \
41         --exclude='*/Docs/source' \
42         -czvf fgfs-base-$(VERSION).tar.gz \
43                 data/ATC \
44                 data/AUTHORS \
45                 data/Aircraft/737 \
46                 data/Aircraft/747 \
47                 data/Aircraft/A320 \
48                 data/Aircraft/ComperSwift \
49                 data/Aircraft/Generic \
50                 data/Aircraft/Hunter \
51                 data/Aircraft/Instruments \
52                 data/Aircraft/Instruments-3d \
53                 data/Aircraft/OV10 \
54                 data/Aircraft/T38 \
55                 data/Aircraft/UIUC \
56                 data/Aircraft/X15 \
57                 data/Aircraft/YF-23 \
58                 data/Aircraft/a4 \
59                 data/Aircraft/an225 \
60                 data/Aircraft/b52 \
61                 data/Aircraft/bo105 \
62                 data/Aircraft/c172 \
63                 data/Aircraft/c172-fs-set.xml \
64                 data/Aircraft/c172-le \
65                 data/Aircraft/c172p \
66                 data/Aircraft/c172r \
67                 data/Aircraft/c172x \
68                 data/Aircraft/c182 \
69                 data/Aircraft/c310 \
70                 data/Aircraft/c310u3a \
71                 data/Aircraft/dc3 \
72                 data/Aircraft/f16 \
73                 data/Aircraft/j22 \
74                 data/Aircraft/j3cub \
75                 data/Aircraft/ornithopter \
76                 data/Aircraft/p51d \
77                 data/Aircraft/pa28-161 \
78                 data/Aircraft/seahawk \
79                 data/Aircraft/sgs233 \
80                 data/Aircraft/t6texan2 \
81                 data/Aircraft/tsr2 \
82                 data/Aircraft/ufo \
83                 data/Aircraft/wrightFlyer1903 \
84                 data/Airports \
85                 data/Astro \
86                 data/[C-H]* \
87                 data/Input \
88                 data/[J-R]* \
89                 data/Scenery \
90                 data/Sounds \
91                 data/[T-W]* \
92                 data/gui \
93                 data/[j-p]* \
94                 data/version \
95         )
96
97 fgfs-textures-high:
98         (cd $(HOME); \
99         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
100         FlightGear/Textures.high)
101
102 # make the mini JSBsim data distribution
103 jsbsim-data:
104         (cd $(HOME); \
105         tar czvf jsbsim-data-$(VERSION).tar.gz \
106         FlightGear/Aircraft \
107         FlightGear/Engine)
108
109 # make the documentation distribution
110
111 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
112
113 fgfs-docs-tar:
114         ( cd $(HOME); \
115         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )
116
117 # fgfs-docs-zip:
118 #       ( cd $(HOME)/projects ; \
119 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
120
121 fgfs-manual-zip:
122         ( cd $(HOME) ; \
123         zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide )
124
125 # make the win32-bin distribution
126
127 fgfs-win32-bin:
128         (cd $(HOME); \
129         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/runfgfs.bat \
130         FlightGear/bin/Win32 )
131
132 # make the win32-libs distribution (depricated)
133 win32-libs:
134         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
135         Win32/README.glut Win32/cygwinb1.dll Win32/def \
136         Win32/*.exp Win32/gen-def-from-errors.pl \
137         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
138         Win32/impdef.exe Win32/include \
139         Win32/install.exe \
140         Win32/lib Win32/zlib.lib )
141
142 # make the MacOS (MWCWP3) devel support archive
143 macos-devel:
144         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
145
146 # clean up dependencies
147 clean-deps:
148         rm -rf .deps \
149         src/.deps tests/.deps \
150         src/*/.deps \
151         src/*/*/.deps \
152         tests/.deps
153
154 # clean up after libtool
155 clean-libs:
156         rm -rf .libs src/.libs \
157                 src/*/.libs \
158                 src/*/*/.libs 
159         rm -f src/*/so_locations \
160                 src/*/*/so_locations 
161
162 # clean up after winbloze spews random case for file names :-(
163 clean-winbloze: clean-deps clean-libs
164         rm -f makefile src/Include/makefile src/makefile \
165                 src/*/makefile \
166                 src/*/*/makefile \
167                 tests/makefile
168         rm -f src/Main/fg.exe