]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Filter fuel selector knob.
[flightgear.git] / Makefile.am
1 SUBDIRS = \
2         tests \
3         src \
4         scripts \
5         man
6
7 EXTRA_DIST = \
8         Thanks \
9         acsite.m4 \
10         acconfig.h \
11         autogen.sh \
12         irix-hack.sh \
13         FlightGear.dsp \
14         FlightGear.dsw
15
16 dist-hook:
17         (cd $(top_srcdir); $(HOME)/projects/FlightGear-0.7/admin/am2dsp.pl)
18         (cd $(top_srcdir); tar --exclude docs-mini/CVS --exclude hints/CVS \
19                 -cf - docs-mini ) | (cd $(distdir); tar xvf -)
20
21
22 ##########################################################################
23 # extra targets to do various things ...
24 #
25 # Use "make <target>"
26 ##########################################################################
27
28
29 # make the base distribution with textures, sounds and a bit of
30 # scenery, and all the other associated files
31
32 fgfs-base: fgfs-base-tar fgfs-base-zip fgfs-base-patch fgfs-textures-high
33
34 fgfs-base-tar:
35         (cd $(HOME); \
36         tar --exclude=CVS \
37         --exclude='*/c172/Instruments.high' \
38         --exclude='*/Models/Aircraft/*' \
39         --exclude='*/Textures/Unused' \
40         --exclude='*/Textures.high/*.save' \
41         -czvf fgfs-base-$(VERSION).tar.gz \
42         FlightGear/A[A-su-z]* \
43         FlightGear/[B-CE-R]* \
44         FlightGear/Scenery/w130n30/w123n37 \
45         FlightGear/Scenery/w130n30/w122n37 \
46         FlightGear/Sounds \
47         FlightGear/[T-Za]* FlightGear/[c-z]*)
48
49 fgfs-base-zip:
50         (cd $(HOME); \
51         zip -rv fgfs-base-$(VERSION).zip \
52         FlightGear/A[A-su-z]* \
53         FlightGear/[B-CE-R]* \
54         FlightGear/Scenery/w130n30/w123n37 \
55         FlightGear/Scenery/w130n30/w122n37 \
56         FlightGear/Sounds \
57         FlightGear/[T-Za]* FlightGear/[c-z]* \
58         -x '*/CVS/*' -x '*/Textures/Unused/*' -x '*/Models/Aircraft/*' )
59
60 fgfs-base-patch:
61         (cd $(HOME); \
62         tar --newer 6/18/2001 -czvf fgfs-base-patch-$(VERSION)c.tar.gz \
63         FlightGear/A[A-su-z]* \
64         FlightGear/[B-CE-R]* \
65         FlightGear/Scenery/w130n30/w123n37 \
66         FlightGear/Scenery/w130n30/w122n37 \
67         FlightGear/Sounds \
68         FlightGear/[T-Za]* FlightGear/[c-z]*)
69
70 fgfs-textures-high:
71         (cd $(HOME); \
72         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
73         FlightGear/Textures.high)
74
75 # make the mini JSBsim data distribution
76 jsbsim-data:
77         (cd $(HOME); \
78         tar czvf jsbsim-data-$(VERSION).tar.gz \
79         FlightGear/Aircraft \
80         FlightGear/Engine)
81
82 # make the documentation distribution
83
84 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
85
86 fgfs-docs-tar:
87         ( cd $(HOME); \
88         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )
89
90 # fgfs-docs-zip:
91 #       ( cd $(HOME)/projects ; \
92 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
93
94 fgfs-manual-zip:
95         ( cd $(HOME) ; \
96         zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide )
97
98 # make the win32-bin distribution
99
100 fgfs-win32-bin:
101         (cd $(HOME); \
102         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/bin )
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