]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Removed unused cur_view_fdm variable as suggested by Bernie Bright.
[flightgear.git] / Makefile.am
1 SUBDIRS = \
2         tests \
3         src \
4         scripts \
5         man
6
7 EXTRA_DIST = \
8         Thanks \
9         acinclude.m4 \
10         autogen.sh \
11         irix-hack.sh \
12         FlightGear.dsp \
13         FlightGear.dsw
14
15 dist-hook:
16         (cd $(top_srcdir); $(HOME)/projects/FlightGear-0.7/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/bin )
102
103 # make the win32-libs distribution (depricated)
104 win32-libs:
105         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
106         Win32/README.glut Win32/cygwinb1.dll Win32/def \
107         Win32/*.exp Win32/gen-def-from-errors.pl \
108         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
109         Win32/impdef.exe Win32/include \
110         Win32/install.exe \
111         Win32/lib Win32/zlib.lib )
112
113 # make the MacOS (MWCWP3) devel support archive
114 macos-devel:
115         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
116
117 # clean up dependencies
118 clean-deps:
119         rm -rf .deps \
120         src/.deps tests/.deps \
121         src/*/.deps \
122         src/*/*/.deps \
123         tests/.deps
124
125 # clean up after libtool
126 clean-libs:
127         rm -rf .libs src/.libs \
128                 src/*/.libs \
129                 src/*/*/.libs 
130         rm -f src/*/so_locations \
131                 src/*/*/so_locations 
132
133 # clean up after winbloze spews random case for file names :-(
134 clean-winbloze: clean-deps clean-libs
135         rm -f makefile src/Include/makefile src/makefile \
136                 src/*/makefile \
137                 src/*/*/makefile \
138                 tests/makefile
139         rm -f src/Main/fg.exe