]> git.mxchange.org Git - flightgear.git/blob - Makefile.am
Targets moved over to Makefile.am
[flightgear.git] / Makefile.am
1 SUBDIRS = Include Lib Simulator Tools Tests
2
3 EXTRA_DIST = Makefile.extra README.Unix README.Linux README.Win32 \
4         README.autoconf README.running Thanks acsite.m4
5
6 dist-hook:
7         tar cf - Hints | (cd $(distdir); tar xvf -)
8
9
10 ##########################################################################
11 # extra targets to do various things ...
12 #
13 # Use "make <target>"
14 ##########################################################################
15
16 FG_ROOT=$(HOME)/FlightGear
17
18 # make the base distribution with textures, sounds and a bit of
19 # scenery, and all the other associated files
20 fgfs-base: fgfs-base-tar fgfs-base-zip
21
22 fgfs-base-tar:
23         (cd $(HOME); \
24         tar czvf fgfs-base-$(VERSION).tar.gz \
25         FlightGear/[A-R]* \
26         FlightGear/Scenery/w120n030/w111n033 \
27         FlightGear/Sounds \
28         FlightGear/Textures FlightGear/Thanks \
29         FlightGear/[m-r]* )
30
31 fgfs-base-zip:
32         (cd $(HOME); \
33         zip -r fgfs-base-$(VERSION).zip \
34         FlightGear/[A-R]* \
35         FlightGear/Scenery/w120n030/w111n033 \
36         FlightGear/Sounds \
37         FlightGear/Textures FlightGear/Thanks \
38         FlightGear/[m-r]* )
39
40 # make the documentation distribution
41 fgfs-docs: fgfs-docs-tar fgfs-docs-zip
42
43 fgfs-docs-tar:
44         tar czvf fgfs-docs-$(VERSION).tar.gz Docs
45
46 # make the documentation distribution
47 fgfs-docs-zip:
48         zip -r fgfs-docs-$(VERSION).zip Docs
49
50 # make the win32-bin distribution
51 fgfs-win32-bin:
52         (cd $(HOME); \
53         zip -r fgfs-win32-bin-$(VERSION).zip FlightGear/bin )
54
55 # make the win32-libs distribution
56 win32-libs:
57         ( zip -r win32-libs-$(VERSION).zip Win32/Makefile \
58         Win32/README.glut Win32/cygwinb19.dll Win32/def \
59         Win32/*.exp Win32/gen-def-from-errors.pl \
60         Win32/glut.dll Win32/glut32.dll Win32/impdef.cpp \
61         Win32/impdef.exe Win32/include \
62         Win32/install.exe \
63         Win32/lib Win32/zlib.lib )
64
65 # clean up dependencies
66 clean-deps:
67         rm -rf .deps \
68         Lib/.deps Simulator/.deps Tools/.deps Test/.deps \
69         Lib/*/.deps Simulator/*/.deps Tools/*/.deps \
70         Lib/*/*/.deps Simulator/*/*/.deps Tools/*/*/.deps \
71         Tests/.deps
72
73 # clean up after libtool
74 clean-libs:
75         rm -rf .libs Lib/.libs Simulator/.libs Tools/.libs \
76                 Lib/*/.libs Simulator/*/.libs Tools/*/.libs \
77                 Lib/*/*/.libs Simulator/*/*/.libs Tools/*/*/.libs
78         rm -f Simulator/*/so_locations Lib/*/so_locations \
79                 Simulator/*/*/so_locations Lib/*/*/so_locations
80
81 # clean up after winbloze spews random case for file names :-(
82 clean-winbloze: clean-deps clean-libs
83         rm -f makefile Include/makefile Lib/makefile Simulator/makefile \
84                 Tools/makefile \
85                 Lib/*/makefile Simulator/*/makefile Tools/*/makefile \
86                 Lib/*/*/makefile Simulator/*/*/makefile Tools/*/*/makefile
87         rm -f Src/Main/fg.exe Tools/*/*.exe