33
33
LDFLAGS=$(COVERAGE)
35
35
# Commands to format a DocBook refentry document into a manual page
36
DOCBOOKTOMAN=cd $(dir $<); xsltproc --nonet --xinclude \
36
DOCBOOKTOMAN=cd $(dir $^); xsltproc --nonet --xinclude \
37
37
--param man.charmap.use.subset 0 \
38
38
--param make.year.ranges 1 \
39
39
--param make.single.year.ranges 1 \
89
89
maintainer-clean: clean
90
-rm --force --recursive keydir confdir
90
-rm --force --recursive keydir
95
# Run the client with a local config and key
96
run-client: all keydir/seckey.txt keydir/pubkey.txt \
97
keydir/secring.gpg keydir/pubring.gpg
97
-./mandos-keygen --dir keydir
98
98
./plugin-runner --plugin-dir=plugins.d \
99
--config-file=plugin-runner.conf \
100
99
--options-for=password-request:--keydir=keydir
103
keydir/secring.gpg: keydir/seckey.txt
104
gpg --homedir $(dir $<) --import $^
105
keydir/pubring.gpg: keydir/pubkey.txt
106
gpg --homedir $(dir $<) --import $^
107
keydir/seckey.txt keydir/pubkey.txt: mandos-keygen
108
install --directory keydir
109
./mandos-keygen --dir keydir --force
111
# Run the server with a local config
112
run-server: confdir/mandos.conf confdir/clients.conf
113
./mandos --debug --configdir=confdir
116
confdir/mandos.conf: mandos.conf
117
install --directory confdir
119
confdir/clients.conf: clients.conf keydir/seckey.txt
120
install --directory confdir
121
install clients.conf $@
122
# Add a client password
123
./mandos-keygen --dir keydir --password >> $@
102
./mandos --debug --configdir=.
125
104
install: install-server install-client