89
89
maintainer-clean: clean
90
-rm --force --recursive keydir
90
-rm --force --recursive keydir confdir
97
-./mandos-keygen --dir keydir
95
# Run the server with a local key
96
run-client: all keydir/seckey.txt keydir/pubkey.txt \
97
keydir/secring.gpg keydir/pubring.gpg
98
98
./plugin-runner --plugin-dir=plugins.d \
99
99
--options-for=password-request:--keydir=keydir
102
./mandos --debug --configdir=.
102
keydir/secring.gpg: keydir/seckey.txt
103
gpg --homedir $(dir $<) --import $^
104
keydir/pubring.gpg: keydir/pubkey.txt
105
gpg --homedir $(dir $<) --import $^
106
keydir/seckey.txt keydir/pubkey.txt: mandos-keygen
107
install --directory keydir
108
./mandos-keygen --dir keydir --force
110
# Run the server with a local config
111
run-server: confdir/mandos.conf confdir/clients.conf
112
./mandos --debug --configdir=confdir
115
confdir/mandos.conf: mandos.conf
116
install --directory confdir
118
confdir/clients.conf: clients.conf keydir/seckey.txt
119
install --directory confdir
120
install clients.conf $@
121
# Add a client password
122
./mandos-keygen --dir keydir --password >> $@
104
124
install: install-server install-client