/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to Makefile

Merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
LDFLAGS=$(COVERAGE)
34
34
 
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 \
58
58
 
59
59
doc: $(DOCS)
60
60
 
61
 
%.5: %.xml legalnotice.xml
62
 
        $(DOCBOOKTOMAN)
63
 
 
64
 
%.8: %.xml legalnotice.xml
65
 
        $(DOCBOOKTOMAN)
66
 
 
67
 
%.8mandos: %.xml legalnotice.xml
68
 
        $(DOCBOOKTOMAN)
69
 
 
70
 
mandos.8: mandos.xml mandos-options.xml overview.xml legalnotice.xml
71
 
        $(DOCBOOKTOMAN)
72
 
 
73
 
mandos-keygen.8: mandos-keygen.xml overview.xml legalnotice.xml
74
 
        $(DOCBOOKTOMAN)
75
 
 
76
 
mandos.conf.5: mandos.conf.xml mandos-options.xml legalnotice.xml
77
 
        $(DOCBOOKTOMAN)
78
 
 
79
 
plugin-runner.8mandos: plugin-runner.xml overview.xml legalnotice.xml
80
 
        $(DOCBOOKTOMAN)
81
 
 
82
 
plugins.d/password-request.8mandos: plugins.d/password-request.xml \
83
 
                                        mandos-options.xml \
84
 
                                        overview.xml legalnotice.xml
 
61
%.5: %.xml
 
62
        $(DOCBOOKTOMAN)
 
63
 
 
64
%.8: %.xml
 
65
        $(DOCBOOKTOMAN)
 
66
 
 
67
%.8mandos: %.xml
 
68
        $(DOCBOOKTOMAN)
 
69
 
 
70
mandos.8: mandos.xml mandos-options.xml
 
71
        $(DOCBOOKTOMAN)
 
72
 
 
73
mandos.conf.5: mandos.conf.xml mandos-options.xml
85
74
        $(DOCBOOKTOMAN)
86
75
 
87
76
plugins.d/password-request: plugins.d/password-request.o
98
87
distclean: clean
99
88
mostlyclean: clean
100
89
maintainer-clean: clean
101
 
        -rm --force --recursive keydir confdir
 
90
        -rm --force --recursive keydir
102
91
 
103
92
check:
104
93
        ./mandos --check
105
94
 
106
 
# Run the client with a local config and key
107
 
run-client: all keydir/seckey.txt keydir/pubkey.txt
 
95
run-client: all
 
96
        -mkdir keydir
 
97
        -./mandos-keygen --dir keydir
108
98
        ./plugin-runner --plugin-dir=plugins.d \
109
 
                --config-file=plugin-runner.conf \
110
 
                --options-for=password-request:--seckey=keydir/seckey.txt,--pubkey=keydir/pubkey.txt
111
 
 
112
 
# Used by run-client
113
 
keydir/seckey.txt keydir/pubkey.txt: mandos-keygen
114
 
        install --directory keydir
115
 
        ./mandos-keygen --dir keydir --force
116
 
 
117
 
# Run the server with a local config
118
 
run-server: confdir/mandos.conf confdir/clients.conf
119
 
        ./mandos --debug --configdir=confdir
120
 
 
121
 
# Used by run-server
122
 
confdir/mandos.conf: mandos.conf
123
 
        install --directory confdir
124
 
        install --mode=0644 $^ $@
125
 
confdir/clients.conf: clients.conf keydir/seckey.txt
126
 
        install --directory confdir
127
 
        install --mode=0640 $< $@
128
 
# Add a client password
129
 
        ./mandos-keygen --dir keydir --password >> $@
 
99
                --options-for=password-request:--keydir=keydir
 
100
 
 
101
run-server:
 
102
        ./mandos --debug --configdir=.
130
103
 
131
104
install: install-server install-client
132
105