]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
- modified to take advantage of SGCommandState to cache property nodes
[flightgear.git] / Makefile.am
1 SUBDIRS = \
2         tests \
3         src
4
5 EXTRA_DIST = Thanks acsite.m4 acconfig.h irix-hack.sh \
6         FlightGear.dsp FlightGear.dsw
7
8 dist-hook:
9         (cd $(top_srcdir); $(HOME)/projects/FlightGear-0.7/admin/am2dsp.pl)
10         (cd $(top_srcdir); tar --exclude docs-mini/CVS --exclude hints/CVS \
11                 -cf - docs-mini hints) | (cd $(distdir); tar xvf -)
12         # tar cf - Simulator/FDM/JSBsim/aircraft Simulator/FDM/JSBsim/engine | (cd $(distdir); tar xvf -)
13
14
15 ##########################################################################
16 # extra targets to do various things ...
17 #
18 # Use "make <target>"
19 ##########################################################################
20
21
22 # make the base distribution with textures, sounds and a bit of
23 # scenery, and all the other associated files
24
25 fgfs-base: fgfs-base-tar fgfs-base-zip fgfs-base-patch fgfs-textures-high
26
27 fgfs-base-tar:
28         (cd $(HOME); \
29         tar --exclude=CVS \
30         --exclude='*/c172/Instruments.high' \
31         --exclude='*/Models/Aircraft/*' \
32         --exclude='*/Textures/Unused' \
33         --exclude='*/Textures.high/*.save' \
34         -czvf fgfs-base-$(VERSION).tar.gz \
35         FlightGear/A[A-su-z]* \
36         FlightGear/[B-CE-R]* \
37         FlightGear/Scenery/w130n30/w123n37 \
38         FlightGear/Scenery/w130n30/w122n37 \
39         FlightGear/Sounds \
40         FlightGear/[T-Za]* FlightGear/[c-z]*)
41
42 fgfs-base-zip:
43         (cd $(HOME); \
44         zip -rv fgfs-base-$(VERSION).zip \
45         FlightGear/A[A-su-z]* \
46         FlightGear/[B-CE-R]* \
47         FlightGear/Scenery/w130n30/w123n37 \
48         FlightGear/Scenery/w130n30/w122n37 \
49         FlightGear/Sounds \
50         FlightGear/[T-Za]* FlightGear/[c-z]* \
51         -x '*/CVS/*' -x '*/Textures/Unused/*' -x '*/Models/Aircraft/*' )
52
53 fgfs-base-patch:
54         (cd $(HOME); \
55         tar --newer 6/18/2001 -czvf fgfs-base-patch-$(VERSION)c.tar.gz \
56         FlightGear/A[A-su-z]* \
57         FlightGear/[B-CE-R]* \
58         FlightGear/Scenery/w130n30/w123n37 \
59         FlightGear/Scenery/w130n30/w122n37 \
60         FlightGear/Sounds \
61         FlightGear/[T-Za]* FlightGear/[c-z]*)
62
63 fgfs-textures-high:
64         (cd $(HOME); \
65         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
66         FlightGear/Textures.high)
67
68 # make the mini JSBsim data distribution
69 jsbsim-data:
70         (cd $(HOME); \
71         tar czvf jsbsim-data-$(VERSION).tar.gz \
72         FlightGear/Aircraft \
73         FlightGear/Engine)
74
75 # make the documentation distribution
76
77 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
78
79 fgfs-docs-tar:
80         ( cd $(HOME); \
81         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )
82
83 # fgfs-docs-zip:
84 #       ( cd $(HOME)/projects ; \
85 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
86
87 fgfs-manual-zip:
88         ( cd $(HOME) ; \
89         zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide )
90
91 # make the win32-bin distribution
92
93 fgfs-win32-bin:
94         (cd $(HOME); \
95         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/bin )
96
97 # make the win32-libs distribution (depricated)
98 win32-libs:
99         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
100         Win32/README.glut Win32/cygwinb1.dll Win32/def \
101         Win32/*.exp Win32/gen-def-from-errors.pl \
102         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
103         Win32/impdef.exe Win32/include \
104         Win32/install.exe \
105         Win32/lib Win32/zlib.lib )
106
107 # make the MacOS (MWCWP3) devel support archive
108 macos-devel:
109         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
110
111 # clean up dependencies
112 clean-deps:
113         rm -rf .deps \
114         src/.deps tests/.deps \
115         src/*/.deps \
116         src/*/*/.deps \
117         tests/.deps
118
119 # clean up after libtool
120 clean-libs:
121         rm -rf .libs src/.libs \
122                 src/*/.libs \
123                 src/*/*/.libs 
124         rm -f src/*/so_locations \
125                 src/*/*/so_locations 
126
127 # clean up after winbloze spews random case for file names :-(
128 clean-winbloze: clean-deps clean-libs
129         rm -f makefile src/Include/makefile src/makefile \
130                 src/*/makefile \
131                 src/*/*/makefile \
132                 tests/makefile
133         rm -f src/Main/fg.exe