]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Removed dependencies on Astro/solarsystem.*
[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
24
25 fgfs-base-tar:
26         (cd $(HOME); \
27         tar czvf fgfs-base-$(VERSION).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).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 # make the mini JSBsim data distribution
43 jsbsim-data:
44         (cd $(HOME); \
45         tar czvf jsbsim-data-$(VERSION).tar.gz \
46         FlightGear/Aircraft \
47         FlightGear/Engine)
48
49 # make the documentation distribution
50
51 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
52
53 fgfs-docs-tar:
54         ( cd ../.. ; \
55         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/docs )
56
57 # fgfs-docs-zip:
58 #       ( cd ../.. ; \
59 #       zip -r fgfs-docs-$(VERSION).zip FlightGear/docs )
60
61 fgfs-manual-zip:
62         ( cd ../.. ; \
63         zip -r fgfs-manual-$(VERSION).zip FlightGear/docs/InstallGuide )
64
65 # make the win32-bin distribution
66
67 fgfs-win32-bin:
68         (cd $(HOME); \
69         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/bin )
70
71 # make the win32-libs distribution (depricated)
72 win32-libs:
73         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
74         Win32/README.glut Win32/cygwinb1.dll Win32/def \
75         Win32/*.exp Win32/gen-def-from-errors.pl \
76         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
77         Win32/impdef.exe Win32/include \
78         Win32/install.exe \
79         Win32/lib Win32/zlib.lib )
80
81 # make the MacOS (MWCWP3) devel support archive
82 macos-devel:
83         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
84
85 # clean up dependencies
86 clean-deps:
87         rm -rf .deps \
88         src/.deps tests/.deps \
89         src/*/.deps \
90         src/*/*/.deps \
91         tests/.deps
92
93 # clean up after libtool
94 clean-libs:
95         rm -rf .libs src/.libs \
96                 src/*/.libs \
97                 src/*/*/.libs 
98         rm -f src/*/so_locations \
99                 src/*/*/so_locations 
100
101 # clean up after winbloze spews random case for file names :-(
102 clean-winbloze: clean-deps clean-libs
103         rm -f makefile src/Include/makefile src/makefile \
104                 src/*/makefile \
105                 src/*/*/makefile \
106                 tests/makefile
107         rm -f src/Main/fg.exe