forked from bookshelfdave/wings
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
102 lines (91 loc) · 2.19 KB
/
Makefile
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
#
# Makefile --
#
# Top-level Makefile for building Wings 3D.
#
# Coepyright (c) 2001-2009 Bjorn Gustavsson
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
.PHONY: all debug clean lang
all:
(cd intl_tools; $(MAKE))
(cd src; $(MAKE))
(cd fonts_src; $(MAKE))
(cd e3d; $(MAKE))
(cd plugins_src; $(MAKE))
(cd icons; $(MAKE))
wx:
(cd intl_tools; $(MAKE))
(cd src; $(MAKE) wx)
(cd fonts_src; $(MAKE))
(cd e3d; $(MAKE))
(cd plugins_src; $(MAKE))
(cd icons; $(MAKE))
debug:
(cd intl_tools; $(MAKE) debug)
(cd src; $(MAKE) debug)
(cd fonts_src; $(MAKE) debug)
(cd e3d; $(MAKE) debug)
(cd plugins_src; $(MAKE) debug)
(cd icons; $(MAKE) debug)
clean:
(cd intl_tools; $(MAKE) clean)
(cd src; $(MAKE) clean)
(cd fonts_src; $(MAKE) clean)
(cd e3d; $(MAKE) clean)
(cd plugins_src; $(MAKE) clean)
(cd icons; $(MAKE) clean)
lang: all
(cd intl_tools; $(MAKE))
(cd src; $(MAKE) lang)
(cd plugins_src; $(MAKE) lang)
escript tools/verify_language_files .
#
# Build installer for Windows.
#
.PHONY: win32
win32: all lang
(cd plugins_src/win32_file; $(MAKE))
(cd plugins_src/jpeg; $(MAKE))
(cd plugins_src/jpeg; $(MAKE) lang)
(cd plugins_src/fbx; $(MAKE))
(cd plugins_src/fbx; $(MAKE) lang)
(cd win32; $(MAKE))
win32/make_installer
#
# Build a package for MacOS X.
#
.PHONY: macosx
macosx: all lang
(cd plugins_src/mac_file; $(MAKE))
(cd plugins_src/mac_file; $(MAKE) lang)
(cd plugins_src/fbx; $(MAKE))
(cd plugins_src/fbx; $(MAKE) lang)
(cd macosx; xcodebuild; ./make_dmg $(WINGS_VSN))
#
# Build package for Unix.
#
.PHONY: unix
unix: all lang
(cd plugins_src/jpeg; $(MAKE))
(cd plugins_src/jpeg; $(MAKE) lang)
unix/make_installer
#
# Build the source distribution.
#
.PHONY: .FORCE-WINGS-VERSION-FILE
vsn.mk: .FORCE-WINGS-VERSION-FILE
@/bin/sh ./WINGS-VERSION-GEN
-include vsn.mk
WINGS_TARNAME=wings-$(WINGS_VSN)
.PHONY: dist
dist:
git archive --format=tar \
--prefix=$(WINGS_TARNAME)/ HEAD^{tree} > $(WINGS_TARNAME).tar
@mkdir -p $(WINGS_TARNAME)
@echo $(WINGS_VSN) > $(WINGS_TARNAME)/version
tar rf $(WINGS_TARNAME).tar $(WINGS_TARNAME)/version
@rm -r $(WINGS_TARNAME)
bzip2 -f -9 $(WINGS_TARNAME).tar