-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.parallel_jobs
141 lines (110 loc) · 4.51 KB
/
makefile.parallel_jobs
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
MKDIR = mkdir -p
DEST_HOME=/usr/local
DEST_BIN=$(DEST_HOME)/bin
DEST_SHARE=$(DEST_HOME)/lib/p7zip
DEST_SHARE_DOC=$(DEST_HOME)/share/doc/p7zip
DEST_MAN=$(DEST_HOME)/man
.PHONY: default all all2 7za 7zG sfx 7z 7zr Client7z common common7z clean tar_bin depend test test_7z test_7zr test_7zG test_Client7z all_test
default:7za
all:7za sfx
all2: 7za sfx 7z
all3: 7za sfx 7z 7zr
all_test : test test_7z test_7zr test_Client7z
$(MAKE) -C CPP/7zip/Compress/PPMD_Alone test
$(MAKE) -C CPP/7zip/Compress/LZMA_Alone test
common:
$(MKDIR) bin
7za: common
$(MAKE) -C CPP/7zip/Bundles/Alone all
7zr: common
$(MAKE) -C CPP/7zip/Bundles/Alone7z all
Client7z: common
$(MKDIR) bin/Codecs
$(MAKE) -C CPP/7zip/Bundles/Format7zFree all
$(MAKE) -C CPP/7zip/UI/Client7z all
depend:
$(MAKE) -C CPP/7zip/Bundles/Alone depend
$(MAKE) -C CPP/7zip/Bundles/Alone7z depend
$(MAKE) -C CPP/7zip/Bundles/SFXCon depend
$(MAKE) -C CPP/7zip/UI/Client7z depend
$(MAKE) -C CPP/7zip/UI/Console depend
$(MAKE) -C CPP/7zip/Bundles/Format7zFree depend
$(MAKE) -C CPP/7zip/Compress/Rar depend
$(MAKE) -C CPP/7zip/UI/GUI depend
sfx: common
$(MKDIR) bin
$(MAKE) -C CPP/7zip/Bundles/SFXCon all
common7z:common
$(MKDIR) bin/Codecs
$(MAKE) -C CPP/7zip/Bundles/Format7zFree all
$(MAKE) -C CPP/7zip/Compress/Rar all
7z: common7z
$(MAKE) -C CPP/7zip/UI/Console all
7zG: common7z
cd bin ; rm -f Lang ; ln -s ../GUI/Lang .
cd bin ; rm -f help ; ln -s ../GUI/help .
$(MAKE) -C CPP/7zip/UI/GUI all
clean:
$(MAKE) -C CPP/myWindows clean
$(MAKE) -C CPP/7zip/Bundles/Alone clean
$(MAKE) -C CPP/7zip/Bundles/Alone7z clean
$(MAKE) -C CPP/7zip/Bundles/SFXCon clean
$(MAKE) -C CPP/7zip/UI/Client7z clean
$(MAKE) -C CPP/7zip/UI/Console clean
$(MAKE) -C CPP/7zip/UI/FileManager clean
$(MAKE) -C CPP/7zip/UI/GUI clean
$(MAKE) -C CPP/7zip/Bundles/Format7zFree clean
$(MAKE) -C CPP/7zip/Compress/Rar clean
$(MAKE) -C CPP/7zip/Compress/LZMA_Alone clean
$(MAKE) -C CPP/7zip/Compress/PPMD_Alone clean
$(MAKE) -C CPP/7zip/Bundles/AloneGCOV clean
rm -fr bin
rm -fr CPP/7zip/CMAKE/Alone
rm -f make.log 1 2
rm -f check/7z.so
find . -name "*~" -exec rm -f {} \;
find . -name "*.orig" -exec rm -fr {} \;
find . -name ".*.swp" -exec rm -f {} \;
find . -name "*.[ch]" -exec chmod -x {} \;
find . -name "*.cpp" -exec chmod -x {} \;
find . -name "*.asm" -exec chmod -x {} \;
find . -name "makefile*" -exec chmod -x {} \;
chmod -x ChangeLog README TODO man1/* DOCS/*.txt
chmod +x contrib/VirtualFileSystemForMidnightCommander/u7z
chmod +x contrib/gzip-like_CLI_wrapper_for_7z/p7zip
chmod +x install.sh check/check.sh check/clean_all.sh check/check_7zr.sh
cd check ; ./clean_all.sh
test: 7za sfx
cd check ; ./check.sh ../bin/7za
test_7z: 7z sfx
cd check ; ./check.sh ../bin/7z
test_7zr: 7zr sfx
cd check ; ./check_7zr.sh ../bin/7zr
test_7zG: 7zG sfx
cd check ; ./check.sh ../bin/7zG
test_Client7z: Client7z
cd check ; ./check_Client7z.sh ../bin/Client7z
install:
./install.sh $(DEST_BIN) $(DEST_SHARE) $(DEST_MAN) $(DEST_SHARE_DOC) $(DEST_DIR)
REP=$(shell pwd)
ARCHIVE=$(shell basename $(REP))
.PHONY: tar_all tar_all2 src_7z tar_bin tar_bin2
tar_all : clean
rm -f ../$(ARCHIVE)_src_all.tar.bz2
cp makefile.linux_x86_ppc_alpha makefile.machine
cd .. ; (tar cf - $(ARCHIVE) | bzip2 -9 > $(ARCHIVE)_src_all.tar.bz2)
tar_all2 : clean
rm -f ../$(ARCHIVE)_src_all.tar.bz2
cp makefile.linux_x86_ppc_alpha makefile.machine
cd .. ; (tar cf - $(ARCHIVE) | 7za a -mx=9 -tbzip2 -si $(ARCHIVE)_src_all.tar.bz2 )
src_7z : clean
rm -f ../$(ARCHIVE)_src.7z
cd .. ; 7za a -mx=9 -m0=ppmd:mem=128m:o=32 $(ARCHIVE)_src.7z $(ARCHIVE)
tar_bin:
rm -f ../$(ARCHIVE)_x86_linux_bin.tar.bz2
chmod +x install.sh contrib/VirtualFileSystemForMidnightCommander/u7z contrib/gzip-like_CLI_wrapper_for_7z/p7zip
cd .. ; (tar cf - $(ARCHIVE)/bin $(ARCHIVE)/contrib $(ARCHIVE)/man1 $(ARCHIVE)/install.sh $(ARCHIVE)/ChangeLog $(ARCHIVE)/DOCS $(ARCHIVE)/README $(ARCHIVE)/TODO | bzip2 -9 > $(ARCHIVE)_x86_linux_bin.tar.bz2)
tar_bin2:
rm -f ../$(ARCHIVE)_x86_linux_bin.tar.bz2
chmod +x install.sh contrib/VirtualFileSystemForMidnightCommander/u7z contrib/gzip-like_CLI_wrapper_for_7z/p7zip
cd .. ; (tar cf - $(ARCHIVE)/bin $(ARCHIVE)/contrib $(ARCHIVE)/man1 $(ARCHIVE)/install.sh $(ARCHIVE)/ChangeLog $(ARCHIVE)/DOCS $(ARCHIVE)/README $(ARCHIVE)/TODO | 7za a -mx=9 -tbzip2 -si $(ARCHIVE)_x86_linux_bin.tar.bz2)