]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Removed old menubar option.
[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: fgfs-base-tar fgfs-base-zip fgfs-base-patch fgfs-textures-high
32
33 fgfs-base-tar:
34         (cd $(HOME); \
35         tar --exclude=CVS \
36         --exclude='*/c172/Instruments.high' \
37         --exclude='*/Models/Aircraft/*' \
38         --exclude='*/Textures/Unused' \
39         --exclude='*/Textures.high/*.save' \
40         -czvf fgfs-base-$(VERSION).tar.gz \
41         FlightGear/A[A-su-z]* \
42         FlightGear/[B-CE-R]* \
43         FlightGear/Scenery/w130n30/w123n37 \
44         FlightGear/Scenery/w130n30/w122n37 \
45         FlightGear/Sounds \
46         FlightGear/[T-Za]* FlightGear/[c-z]*)
47
48 fgfs-base-zip:
49         (cd $(HOME); \
50         zip -rv fgfs-base-$(VERSION).zip \
51         FlightGear/A[A-su-z]* \
52         FlightGear/[B-CE-R]* \
53         FlightGear/Scenery/w130n30/w123n37 \
54         FlightGear/Scenery/w130n30/w122n37 \
55         FlightGear/Sounds \
56         FlightGear/[T-Za]* FlightGear/[c-z]* \
57         -x '*/CVS/*' -x '*/Textures/Unused/*' -x '*/Models/Aircraft/*' )
58
59 fgfs-base-patch:
60         (cd $(HOME); \
61         tar --newer 6/18/2001 -czvf fgfs-base-patch-$(VERSION)c.tar.gz \
62         FlightGear/A[A-su-z]* \
63         FlightGear/[B-CE-R]* \
64         FlightGear/Scenery/w130n30/w123n37 \
65         FlightGear/Scenery/w130n30/w122n37 \
66         FlightGear/Sounds \
67         FlightGear/[T-Za]* FlightGear/[c-z]*)
68
69 fgfs-textures-high:
70         (cd $(HOME); \
71         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
72         FlightGear/Textures.high)
73
74 # make the mini JSBsim data distribution
75 jsbsim-data:
76         (cd $(HOME); \
77         tar czvf jsbsim-data-$(VERSION).tar.gz \
78         FlightGear/Aircraft \
79         FlightGear/Engine)
80
81 # make the documentation distribution
82
83 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
84
85 fgfs-docs-tar:
86         ( cd $(HOME); \
87         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )
88
89 # fgfs-docs-zip:
90 #       ( cd $(HOME)/projects ; \
91 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
92
93 fgfs-manual-zip:
94         ( cd $(HOME) ; \
95         zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide )
96
97 # make the win32-bin distribution
98
99 fgfs-win32-bin:
100         (cd $(HOME); \
101         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/runfgfs.bat \
102         FlightGear/bin/Win32 )
103
104 # make the win32-libs distribution (depricated)
105 win32-libs:
106         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
107         Win32/README.glut Win32/cygwinb1.dll Win32/def \
108         Win32/*.exp Win32/gen-def-from-errors.pl \
109         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
110         Win32/impdef.exe Win32/include \
111         Win32/install.exe \
112         Win32/lib Win32/zlib.lib )
113
114 # make the MacOS (MWCWP3) devel support archive
115 macos-devel:
116         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
117
118 # clean up dependencies
119 clean-deps:
120         rm -rf .deps \
121         src/.deps tests/.deps \
122         src/*/.deps \
123         src/*/*/.deps \
124         tests/.deps
125
126 # clean up after libtool
127 clean-libs:
128         rm -rf .libs src/.libs \
129                 src/*/.libs \
130                 src/*/*/.libs 
131         rm -f src/*/so_locations \
132                 src/*/*/so_locations 
133
134 # clean up after winbloze spews random case for file names :-(
135 clean-winbloze: clean-deps clean-libs
136         rm -f makefile src/Include/makefile src/makefile \
137                 src/*/makefile \
138                 src/*/*/makefile \
139                 tests/makefile
140         rm -f src/Main/fg.exe