-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
51 lines (37 loc) · 1.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
DIST_BASENAME=rv_house
DIST_FILES=LICENSE README Makefile SConstruct build_config.py.dist build_support.py src build install dist_files
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
mkdir -p linux_bin_dist/rv_house
cp -rp dist_files/* linux_bin_dist/rv_house
rm linux_bin_dist/rv_house/pthreadGC.dll
cp -p build/linux2/Release/rv_house linux_bin_dist/rv_house
cd linux_bin_dist; tar -cvf rv_house_linux.tar --exclude '.*' rv_house; gzip 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