-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
48 lines (35 loc) · 1.53 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
PMAJOR = 4
PMINOR = 5
REL = s_y$(PMAJOR)b$(PMINOR)
VER = 0.7-457$(REL)
DIR = ax7z-$(VER)
.PHONY: release dist build mkpatch tag gtag retag test
release: build dist
release.h: Makefile release.h.in
sed -e 's/@PMAJOR@/$(PMAJOR)/;s/@PMINOR@/$(PMINOR)/;s/@REL@/$(REL)/' release.h.in > release.h
dist: mkpatch
rm -rf $(DIR)
mkdir -p $(DIR)
cp -p Release/ax7z_s.spi ax7z_s.txt $(DIR)
(cd $(DIR); zip ../$(DIR).zip *)
rm -rf $(DIR)
build: release.h
/cygdrive/c/Program\ Files\ \(x86\)/Application/Microsoft\ Visual\ Studio\ 11.0/Common7/IDE/devenv.exe ./00am.sln /Build Release
rebuild: release.h
/cygdrive/c/Program\ Files\ \(x86\)/Application/Microsoft\ Visual\ Studio\ 11.0/Common7/IDE/devenv.exe ./00am.sln /Rebuild Release
dbuild: release.h
/cygdrive/c/Program\ Files\ \(x86\)/Application/Microsoft\ Visual\ Studio\ 11.0/Common7/IDE/devenv.exe ./00am.sln /Build Debug
drebuild: release.h
/cygdrive/c/Program\ Files\ \(x86\)/Application/Microsoft\ Visual\ Studio\ 11.0/Common7/IDE/devenv.exe ./00am.sln /Rebuild Debug
mkpatch:
rm -f $(DIR).patch
-env LANG=C diff -urN -X diff-exclude.txt /var/tmp/ax7z_src-orig . > $(DIR).patch
-env LANG=C diff -u /var/tmp/ax7z_src-orig/7z/7zip/UI/Common/OpenArchive.cpp 7z/7zip/UI/Common/OpenArchive.cpp >> $(DIR).patch
-env LANG=C diff -u /var/tmp/ax7z_src-orig/7z/7zip/UI/Common/LoadCodecs.cpp 7z/7zip/UI/Common/LoadCodecs.cpp >> $(DIR).patch
tag:
git tag $(DIR)
retag:
git tag -f $(DIR)
sqlite3/sqlite3.o: sqlite3/sqlite3.c
test: test.cpp sqlite3/sqlite3.o
g++ -Wall -o test test.cpp sqlite3/sqlite3.o