sneakin / mypasswordsafe

Aging Qt based password manager for OS X, Linux, and maybe Windows.

This URL has Read+Write access

mypasswordsafe / Makefile
100644 80 lines (63 sloc) 1.977 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
# MyPasswordSafe Makefile
# $Header: /home/cvsroot/MyPasswordSafe/Makefile,v 1.18 2007/01/02 00:01:09 nolan Exp $
 
# This is the only configuration setting. It specifies where the files will
# be copied when "make install" is called, and where MyPS will search for
# its language files.
ifndef PREFIX
PREFIX=/usr/local
endif
 
QMAKE=qmake
DATE=$(shell date +%Y%m%d)
VERSION=0.6.7
ifndef USER
# get the user's name from the environment
USER=$(USER)
endif
ifndef HOST
HOST=$(shell hostname)
endif
 
all: MyPasswordSafe
 
ChangeLog:
./tools/cvs2cl.pl
 
MyPasswordSafe.mak: MyPasswordSafe.pro
$(QMAKE) -o $@ $<
 
MyPasswordSafe: config uuid-1.0.0/.libs/libuuid.a MyPasswordSafe.mak
${MAKE} -f MyPasswordSafe.mak
lrelease locale/*.ts
 
uuid-1.0.0/.libs/libuuid.a:
cd uuid-1.0.0 && ./configure --prefix=$(PREFIX) && cd ..
${MAKE} -C uuid-1.0.0
 
doc/api:
mkdir doc/api
 
doc: doc/api
doxygen doxygen.conf
 
src/config.h:
echo "#ifndef CONFIG_H" > src/config.h
echo "#define CONFIG_H" >> src/config.h
echo "#define PREFIX \"$(PREFIX)\"" >> src/config.h
echo "#define VERSION \"$(VERSION)\"" >> src/config.h
echo "#define COMP_DATE \"$(DATE)\"" >> src/config.h
echo "#define COMP_USER \"$(USER)\"" >> src/config.h
echo "#define COMP_HOST \"$(HOST)\"" >> src/config.h
echo "#endif" >> src/config.h
 
config: src/config.h
 
clean: MyPasswordSafe.mak
${MAKE} -f $< clean
${MAKE} -C uuid-1.0.0 clean
# rm -r doc/api
rm $<
 
install:
install -d $(PREFIX)/bin $(PREFIX)/share/MyPasswordSafe/locale \
$(PREFIX)/share/doc/MyPasswordSafe/sshots
install MyPasswordSafe $(PREFIX)/bin/MyPasswordSafe
install -m 0644 locale/*.qm $(PREFIX)/share/MyPasswordSafe/locale
install -m 0644 doc/manual.html $(PREFIX)/share/doc/MyPasswordSafe
install -m 0644 doc/sshots/*.jpg $(PREFIX)/share/doc/MyPasswordSafe/sshots
 
uninstall:
rm $(PREFIX)/bin/MyPasswordSafe
rm -r $(PREFIX)/share/MyPasswordSafe
rm -r $(PREFIX)/doc/MyPasswordSafe
 
release:
${MAKE} -c release
 
commit:
cvs commit