]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Renamed new FGEngine to FGNewEngine to avoid conflict with stuff in JSBSim.
[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 fgfs-textures-high
24
25 fgfs-base-tar:
26         (cd $(HOME); \
27         tar czvf fgfs-base-$(VERSION).tar.gz \
28         FlightGear/A[A-su-z]* \
29         FlightGear/[B-CE-R]* \
30         FlightGear/Scenery/w130n30/w123n37 \
31         FlightGear/Scenery/w130n30/w122n37 \
32         FlightGear/Sounds \
33         FlightGear/Textures \
34         FlightGear/T[A-Za-df-z]* \
35         FlightGear/[U-W]* FlightGear/[c-m]*)
36
37 fgfs-base-zip:
38         (cd $(HOME); \
39         zip -rv fgfs-base-$(VERSION).zip \
40         FlightGear/A[A-su-z]* \
41         FlightGear/[B-CE-R]* \
42         FlightGear/Scenery/w130n30/w123n37 \
43         FlightGear/Scenery/w130n30/w122n37 \
44         FlightGear/Sounds \
45         FlightGear/Textures \
46         FlightGear/T[A-Za-df-z]* \
47         FlightGear/[U-W]* FlightGear/[c-z]*)
48
49 fgfs-base-patch:
50         (cd $(HOME); \
51         tar --newer 9/18/2000 -czvf fgfs-base-patch-$(VERSION)b.tar.gz \
52         FlightGear/A[A-su-z]* \
53         FlightGear/[B-CE-R]* \
54         FlightGear/Scenery/w130n30/w123n37 \
55         FlightGear/Scenery/w130n30/w122n37 \
56         FlightGear/Sounds \
57         FlightGear/Textures \
58         FlightGear/T[A-Za-df-z]* \
59         FlightGear/[U-W]* FlightGear/[c-m]*)
60
61 fgfs-textures-high:
62         (cd $(HOME); \
63         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
64         FlightGear/Textures.high)
65
66 # make the mini JSBsim data distribution
67 jsbsim-data:
68         (cd $(HOME); \
69         tar czvf jsbsim-data-$(VERSION).tar.gz \
70         FlightGear/Aircraft \
71         FlightGear/Engine)
72
73 # make the documentation distribution
74
75 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
76
77 fgfs-docs-tar:
78         ( cd ../.. ; \
79         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear-0.7/docs )
80
81 # fgfs-docs-zip:
82 #       ( cd ../.. ; \
83 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
84
85 fgfs-manual-zip:
86         ( cd ../.. ; \
87         zip -r fgfs-manual-$(VERSION).zip FlightGear-0.7/docs/InstallGuide )
88
89 # make the win32-bin distribution
90
91 fgfs-win32-bin:
92         (cd $(HOME); \
93         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/bin )
94
95 # make the win32-libs distribution (depricated)
96 win32-libs:
97         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
98         Win32/README.glut Win32/cygwinb1.dll Win32/def \
99         Win32/*.exp Win32/gen-def-from-errors.pl \
100         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
101         Win32/impdef.exe Win32/include \
102         Win32/install.exe \
103         Win32/lib Win32/zlib.lib )
104
105 # make the MacOS (MWCWP3) devel support archive
106 macos-devel:
107         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
108
109 # clean up dependencies
110 clean-deps:
111         rm -rf .deps \
112         src/.deps tests/.deps \
113         src/*/.deps \
114         src/*/*/.deps \
115         tests/.deps
116
117 # clean up after libtool
118 clean-libs:
119         rm -rf .libs src/.libs \
120                 src/*/.libs \
121                 src/*/*/.libs 
122         rm -f src/*/so_locations \
123                 src/*/*/so_locations 
124
125 # clean up after winbloze spews random case for file names :-(
126 clean-winbloze: clean-deps clean-libs
127         rm -f makefile src/Include/makefile src/makefile \
128                 src/*/makefile \
129                 src/*/*/makefile \
130                 tests/makefile
131         rm -f src/Main/fg.exe