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