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