forked from ajalkane/rvhouse
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
57 lines (44 loc) · 1.48 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
DIST_BASENAME = rv_house
DIST_FILES = LICENSE README Makefile SConstruct build_config.py.dist build_support.py src build install dist_files
DIST_INNO = "$(HOME)/.wine/drive_c/Program Files (x86)/Inno Setup 5/Compil32.exe"
DIST_PATH = install.bin
default: release
clean: clean_release
all: release
clean_all: clean_release clean_debug
release: build_release
debug: build_debug
build_release:
scons
build_debug:
scons debug=yes
clean_release:
scons -c
clean_debug:
scons -c debug=yes
dist: clean_all
mkdir -p dist_tmp/$(DIST_BASENAME)
cp -r $(DIST_FILES) dist_tmp/$(DIST_BASENAME)
cd dist_tmp;tar "--exclude=.*" -cvf ../$(DIST_BASENAME).tar $(DIST_BASENAME)
gzip $(DIST_BASENAME).tar
rm -r dist_tmp
# Temporary solution
# TODO: to scons file generalized method of creating
# tar package of the binary distribution
linux_dist:
#strip build/linux/Release/rv_house
#upx build/linux/Release/rv_house
rm -rf $(DIST_PATH)/rv_house
mkdir -p $(DIST_PATH)/rv_house
cp -rp dist_files/* $(DIST_PATH)/rv_house
rm $(DIST_PATH)/rv_house/*.dll
rm -rf $(DIST_PATH)/rv_house/imageformats
cp -p dist_files/gpl.txt $(DIST_PATH)/rv_house
cp -p build/linux/Release/rv_house $(DIST_PATH)/rv_house/rv_house.32
cd $(DIST_PATH); tar -cvf rv_house_linux.tar --exclude '.*' rv_house; gzip -f rv_house_linux.tar
rm -rf $(DIST_PATH)/rv_house
win32_dist:
#strip build/win32/Release/rv_house.exe
#upx --force build/win32/Release/rv_house.exe
#start install/installer.iss
$(DIST_INNO) /cc "install\installer.iss"