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