]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Don't exclude 'data/Data' directory.
[flightgear.git] / Makefile.am
1 SUBDIRS = \
2         tests \
3         man \
4         scripts \
5         src \
6         utils
7
8 EXTRA_DIST = \
9         Thanks \
10         acinclude.m4 \
11         autogen.sh \
12         FlightGear.dsp \
13         FlightGear.dsw
14
15 dist-hook:
16         (cd $(top_srcdir); $(HOME)/Projects/FlightGear/admin/am2dsp.pl)
17         (cd $(top_srcdir); tar --exclude docs-mini/CVS --exclude hints/CVS \
18                 -cf - docs-mini ) | (cd $(distdir); tar xvf -)
19
20
21 ##########################################################################
22 # extra targets to do various things ...
23 #
24 # Use "make <target>"
25 ##########################################################################
26
27
28 # make the base distribution with textures, sounds and a bit of
29 # scenery, and all the other associated files
30
31 fgfs-base-tar:
32         (cd ..; \
33         tar \
34         --exclude=CVS \
35         --exclude='*~' \
36         --exclude='*.tex' \
37         --exclude='*.xcf' \
38         --exclude='*/c172/Instruments.high' \
39         --exclude='*/Textures/Unused' \
40         --exclude='*/Textures.high/*.save' \
41         --exclude='*/Textures.high/*.new' \
42         --exclude='*/Docs/source' \
43         --exclude='*/Models/MNUAV' \
44         -cvf - \
45                 data/Aircraft/Generic \
46                 data/Aircraft/Instruments \
47                 data/Aircraft/Instruments-3d \
48                 data/Aircraft/UIUC \
49                 data/Aircraft/737 \
50                 data/Aircraft/A-10 \
51                 data/Aircraft/bo105 \
52                 data/Aircraft/c172 \
53                 data/Aircraft/c172p \
54                 data/Aircraft/c310 \
55                 data/Aircraft/c310u3a \
56                 data/Aircraft/Citation \
57                 data/Aircraft/f16 \
58                 data/Aircraft/j3cub \
59                 data/Aircraft/Hunter \
60                 data/Aircraft/p51d \
61                 data/Aircraft/pa28-161 \
62                 data/Aircraft/ufo \
63                 data/Aircraft/wrightFlyer1903 \
64                 data/Airports \
65                 data/Astro \
66                 data/ATC \
67                 data/AUTHORS \
68                 data/[C-H]* \
69                 data/Input \
70                 data/[J-R]* \
71                 data/Scenery \
72                 data/Sounds \
73                 data/T* \
74                 data/cloudlayers.xml \
75                 data/gui \
76                 data/[j-p]* \
77                 data/version \
78         | bzip2 --best > fgfs-base-$(VERSION).tar.bz2 \
79         )
80
81 fgfs-textures-high:
82         (cd $(HOME); \
83         tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
84         FlightGear/Textures.high)
85
86 # make the mini JSBsim data distribution
87 jsbsim-data:
88         (cd $(HOME); \
89         tar czvf jsbsim-data-$(VERSION).tar.gz \
90         FlightGear/Aircraft \
91         FlightGear/Engine)
92
93 # make the documentation distribution
94
95 fgfs-docs: fgfs-docs-tar fgfs-manual-zip
96
97 fgfs-docs-tar:
98         ( cd $(HOME); \
99         tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )
100
101 # fgfs-docs-zip:
102 #       ( cd $(HOME)/Projects ; \
103 #       zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )
104
105 fgfs-manual-zip:
106         ( cd $(HOME) ; \
107         zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide )
108
109 # make the win32-bin distribution
110
111 fgfs-win32-bin:
112         (cd $(HOME); \
113         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/runfgfs.bat \
114         FlightGear/bin/Win32 )
115
116 # make the win32-libs distribution (depricated)
117 win32-libs:
118         ( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
119         Win32/README.glut Win32/cygwinb1.dll Win32/def \
120         Win32/*.exp Win32/gen-def-from-errors.pl \
121         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
122         Win32/impdef.exe Win32/include \
123         Win32/install.exe \
124         Win32/lib Win32/zlib.lib )
125
126 # make the MacOS (MWCWP3) devel support archive
127 macos-devel:
128         ( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )
129
130 # clean up dependencies
131 clean-deps:
132         rm -rf .deps \
133         src/.deps tests/.deps \
134         src/*/.deps \
135         src/*/*/.deps \
136         tests/.deps
137
138 # clean up after libtool
139 clean-libs:
140         rm -rf .libs src/.libs \
141                 src/*/.libs \
142                 src/*/*/.libs 
143         rm -f src/*/so_locations \
144                 src/*/*/so_locations 
145
146 # clean up after winbloze spews random case for file names :-(
147 clean-winbloze: clean-deps clean-libs
148         rm -f makefile src/Include/makefile src/makefile \
149                 src/*/makefile \
150                 src/*/*/makefile \
151                 tests/makefile
152         rm -f src/Main/fg.exe