forked from gk7huki/rvhouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (43 loc) · 1.44 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
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/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_bin_dist:
#strip build/linux2/Release/rv_house
#upx build/linux2/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/linux2/Release/rv_house $(DIST_PATH)/rv_house
cd $(DIST_PATH); tar -cvf rv_house_linux.tar --exclude '.*' rv_house; gzip -f rv_house_linux.tar
win_bin_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"