]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
9620995a9547402cc87e87b88a744d52848a1a34
[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)g.tar.gz \
28         FlightGear/[A-CE-R]* \
29         FlightGear/Scenery/w120n30/w111n33 \
30         FlightGear/Sounds \
31         FlightGear/[T-W]* FlightGear/[c-m]*)
32
33 fgfs-base-zip:
34         (cd $(HOME); \
35         zip -ryv fgfs-base-$(VERSION)g.zip \
36         FlightGear/[A-CE-R]* \
37         FlightGear/Scenery/w120n30/w111n33 \
38         FlightGear/Sounds \
39         FlightGear/Textures FlightGear/Thanks \
40         FlightGear/[T-W]* FlightGear/[c-z]*)
41
42 fgfs-base-patch:
43         (cd $(HOME); \
44         tar --newer 2/17/2000 -czvf fgfs-base-patch-$(VERSION)g.tar.gz \
45         FlightGear/[A-CE-R]* \
46         FlightGear/Scenery/w120n30/w111n33 \
47         FlightGear/Sounds \
48         FlightGear/[T-W]* FlightGear/[c-m]*)
49
50 # make the mini JSBsim data distribution
51 jsbsim-data:
52         (cd $(HOME); \
53         tar czvf jsbsim-data-$(VERSION).tar.gz \
54         FlightGear/Aircraft \
55         FlightGear/Engine)
56
57 # make the documentation distribution
58
59 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
60
61 fgfs-docs-tar:
62         ( cd ../.. ; \
63         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/docs )
64
65 # fgfs-docs-zip:
66 #       ( cd ../.. ; \
67 #       zip -r fgfs-docs-$(VERSION).zip FlightGear/docs )
68
69 fgfs-manual-zip:
70         ( cd ../.. ; \
71         zip -r fgfs-manual-$(VERSION).zip FlightGear/docs/InstallGuide )
72
73 # make the win32-bin distribution
74
75 fgfs-win32-bin:
76         (cd $(HOME); \
77         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/bin )
78
79 # make the win32-libs distribution (depricated)
80 win32-libs:
81         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
82         Win32/README.glut Win32/cygwinb1.dll Win32/def \
83         Win32/*.exp Win32/gen-def-from-errors.pl \
84         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
85         Win32/impdef.exe Win32/include \
86         Win32/install.exe \
87         Win32/lib Win32/zlib.lib )
88
89 # make the MacOS (MWCWP3) devel support archive
90 macos-devel:
91         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
92
93 # clean up dependencies
94 clean-deps:
95         rm -rf .deps \
96         src/.deps tests/.deps \
97         src/*/.deps \
98         src/*/*/.deps \
99         tests/.deps
100
101 # clean up after libtool
102 clean-libs:
103         rm -rf .libs src/.libs \
104                 src/*/.libs \
105                 src/*/*/.libs 
106         rm -f src/*/so_locations \
107                 src/*/*/so_locations 
108
109 # clean up after winbloze spews random case for file names :-(
110 clean-winbloze: clean-deps clean-libs
111         rm -f makefile src/Include/makefile src/makefile \
112                 src/*/makefile \
113                 src/*/*/makefile \
114                 tests/makefile
115         rm -f src/Main/fg.exe