[r5083]: tags / V3_27 / Makefile.linux Maximize Restore History

Download this file

Makefile.linux    92 lines (69 with data), 2.3 kB

 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
# Toplevel Makefile for Linux build of PasswordSafe
# TBD: Grok following from src/ui/wxWidgets/version.in
RELEASENUM := 0.7.0
RELEASE_SPECIAL := BETA
# Shouldn't change anything below here
.PHONY: all clean debug-clean release-clean debug release \
unicodedebug unicoderelease deb tar signatures \
dist sha1sums upload
RELEASENAME := $(RELEASENUM)$(RELEASE_SPECIAL)
RELEASEDIR := ./Releases/
TMPDIR := /tmp/pwsrc-$(shell echo $$$$)
MKDIR := mkdir -p
RM := /bin/rm -rf
SVN := svn
TAR := tar
GPG := /usr/bin/gpg
GPG_KEY := ronys@users.sourceforge.net
GPG_SIGN := $(GPG) --detach-sign --default-key $(GPG_KEY)
SHA1SUM := /usr/bin/sha1sum
UPLOAD_CMD := /usr/bin/rsync -avP -e ssh
UPLOAD_DST := ronys@frs.sourceforge.net:/home/frs/project/p/pa/passwordsafe/Linux-BETA/$(RELEASENUM)
all: unicodedebug unicoderelease
unicodedebug unicoderelease:
$(MAKE) -C src/os/linux $@
$(MAKE) -C src/core $@
$(MAKE) -C src/ui/wxWidgets CONFIG=$@
debug:
$(MAKE) unicodedebug
release:
$(MAKE) unicoderelease
clean: debug-clean release-clean
debug-clean:
$(MAKE) CONFIG=unicodedebug -C src/os/linux clean
$(MAKE) CONFIG=unicodedebug -C src/core clean
$(MAKE) CONFIG=unicodedebug -C src/ui/wxWidgets clean
release-clean:
$(MAKE) CONFIG=unicoderelease -C src/os/linux clean
$(MAKE) CONFIG=unicoderelease -C src/core clean
$(MAKE) CONFIG=unicoderelease -C src/ui/wxWidgets clean
# dist prepares stuff for upload
dist: release deb tar signatures sha1sums
deb:
@$(MKDIR) $(RELEASEDIR)
$(MAKE) -C install/deb \
RELEASENAME=$(RELEASENAME) RELEASEDIR=../../$(RELEASEDIR)
tar:
@$(MKDIR) $(TMPDIR)
@echo -n "Exporting source tree..."
@$(SVN) export --quiet . $(TMPDIR)/pwsafe-$(RELEASENAME)
# Prune windows-only code (not for now - provide as a reference?)
# @$(RM) $(TMPDIR)/pwsafe-$(RELEASENAME)/src/{ui/Windows,Tools/Windows}
@echo -n "Creating tarball..."
@$(TAR) czf $(RELEASEDIR)pwsafe-$(RELEASENAME)-src.tgz -C $(TMPDIR) .
@$(RM) $(TMPDIR)
@echo "Done."
sha1sums:
(cd $(RELEASEDIR); \
$(SHA1SUM) pwsafe-$(RELEASENAME)-src.tgz \
*$(RELEASENAME)*.deb)
signatures:
$(GPG_SIGN) $(RELEASEDIR)pwsafe-$(RELEASENAME)-src.tgz
$(GPG_SIGN) $(RELEASEDIR)*$(RELEASENAME)*.deb
upload:
$(UPLOAD_CMD) \
$(wildcard $(RELEASEDIR)/passwordsafe-*$(RELEASENAME)*) \
$(UPLOAD_DST)
# Local variables:
# mode: makefile
# End: