File: Makefile.am

package info (click to toggle)
flightgear 1.9.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 13,108 kB
  • ctags: 23,541
  • sloc: cpp: 130,429; ansic: 6,216; sh: 3,878; makefile: 946; perl: 680; python: 109
file content (180 lines) | stat: -rw-r--r-- 4,361 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
SUBDIRS = \
	tests \
	man \
        scripts \
	src \
        utils

EXTRA_DIST = \
	acinclude.m4 \
	autogen.sh \
	FlightGear.dsp \
	FlightGear.dsw \
	projects \
	README \
	README.OpenAL \
	README.plib \
	README.OSG \
	README.SimGear \
	Thanks

dist-hook:
	(cd $(top_srcdir); $(HOME)/Projects/FlightGear/admin/am2dsp.pl)
	(cd $(top_srcdir); tar --exclude docs-mini/CVS --exclude hints/CVS \
		-cf - docs-mini ) | (cd $(distdir); tar xvf -)
	rm -rf `find $(distdir)/projects -name CVS`


##########################################################################
# extra targets to do various things ...
#
# Use "make <target>"
##########################################################################


# make the base distribution with textures, sounds and a bit of
# scenery, and all the other associated files

# note, fedora core tar does case insensitive wildcard matching for
# directories, but apparently not files ... some stupid reason. :-(

data-tar:
	(cd ..; \
	tar \
	--exclude=CVS \
	--exclude='*~' \
	--exclude='*.tex' \
	--exclude='*.xcf' \
	--exclude='*/c172/Instruments.high' \
	--exclude='*/Textures/Unused' \
	--exclude='*/Textures/*.orig' \
	--exclude='*/Textures.high/*.new' \
	--exclude='*/Textures.high/*.orig' \
	--exclude='*/Textures.high/*.save' \
	--exclude='*/data/Data' \
	--exclude='*/Docs/source' \
        --exclude='*/Models/MNUAV' \
        --exclude='*/Models/Airspace' \
	-cjvf source/FlightGear-data-$(VERSION).tar.bz2 \
		data/AI \
                data/Aircraft/Generic \
                data/Aircraft/Instruments \
                data/Aircraft/Instruments-3d \
                data/Aircraft/UIUC \
		data/Aircraft/777-200 \
		data/Aircraft/A6M2 \
		data/Aircraft/b1900d \
                data/Aircraft/bo105 \
                data/Aircraft/c172p \
                data/Aircraft/CitationX \
		data/Aircraft/Dragonfly \
		data/Aircraft/dhc2 \
		data/Aircraft/f-14b \
		data/Aircraft/j3cub \
		data/Aircraft/SenecaII \
		data/Aircraft/sopwithCamel \
                data/Aircraft/ufo \
		data/Aircraft/ZLT-NT \
		data/Airports \
		data/Astro \
		data/ATC \
		data/AUTHORS \
		data/ChangeLog \
		data/cloudlayers.xml \
		data/COPYING \
		data/D* \
		data/Fonts \
		data/gui \
		data/Huds \
		data/Input \
		data/joysticks.xml \
		data/keyboard.xml \
		data/Lighting \
		data/materials.dtd \
		data/materials.xml \
		data/mice.xml \
		data/Models \
		data/N* \
		data/options.xml \
		data/preferences.xml \
		data/Protocol \
		data/README \
		data/Scenery/Objects \
		data/Scenery/Terrain \
		data/Sounds \
		data/T* \
		data/version \
	)

fgfs-textures-high:
	(cd $(HOME); \
	tar -czvf fgfs-textures-high-$(VERSION)b.tar.gz \
	FlightGear/Textures.high)

# make the mini JSBsim data distribution
jsbsim-data:
	(cd $(HOME); \
	tar czvf jsbsim-data-$(VERSION).tar.gz \
	FlightGear/Aircraft \
	FlightGear/Engine)

# make the documentation distribution

fgfs-docs: fgfs-docs-tar fgfs-manual-zip

fgfs-docs-tar:
	( cd $(HOME); \
	tar czvf fgfs-docs-$(VERSION).tar.gz FlightGear/Docs )

# fgfs-docs-zip:
# 	( cd $(HOME)/Projects ; \
# 	zip -r fgfs-docs-$(VERSION).zip FlightGear-0.7/docs )

fgfs-manual-zip:
	( cd $(HOME) ; \
	zip -r fgfs-manual-$(VERSION).zip FlightGear/Docs/InstallGuide )

# make the win32-bin distribution

fgfs-win32-bin:
	(cd $(HOME); \
	zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/runfgfs.bat \
        FlightGear/bin/Win32 )

# make the win32-libs distribution (depricated)
win32-libs:
	( zip -r ../win32-libs-$(VERSION).zip Win32/Makefile \
	Win32/README.glut Win32/cygwinb1.dll Win32/def \
	Win32/*.exp Win32/gen-def-from-errors.pl \
	Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
	Win32/impdef.exe Win32/include \
	Win32/install.exe \
	Win32/lib Win32/zlib.lib )

# make the MacOS (MWCWP3) devel support archive
macos-devel:
	( cd ..; zip -r MWCWP3_Support.zip FlightGear/MWCWP3_Support )

# clean up dependencies
clean-deps:
	rm -rf .deps \
	src/.deps tests/.deps \
	src/*/.deps \
	src/*/*/.deps \
	tests/.deps

# clean up after libtool
clean-libs:
	rm -rf .libs src/.libs \
		src/*/.libs \
		src/*/*/.libs 
	rm -f src/*/so_locations \
		src/*/*/so_locations 

# clean up after winbloze spews random case for file names :-(
clean-winbloze: clean-deps clean-libs
	rm -f makefile src/Include/makefile src/makefile \
		src/*/makefile \
		src/*/*/makefile \
		tests/makefile
	rm -f src/Main/fg.exe