/mandos/release

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

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Teddy Hogeborn
  • Date: 2008-08-24 23:33:02 UTC
  • mfrom: (24.1.65 mandos)
  • Revision ID: teddy@fukt.bsnet.se-20080824233302-kfu4g2pkozg7xrmz
* plugin-runner.c (process): Set "completed" and "status" as volatile.
  (handle_sigchld): Bug fix: reset proc to process_list every time.

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
 
61
%.5: %.xml
 
62
        $(DOCBOOKTOMAN)
 
63
 
 
64
%.8: %.xml
 
65
        $(DOCBOOKTOMAN)
 
66
 
 
67
%.8mandos: %.xml
68
68
        $(DOCBOOKTOMAN)
69
69
 
70
70
mandos.8: mandos.xml mandos-options.xml
87
87
distclean: clean
88
88
mostlyclean: clean
89
89
maintainer-clean: clean
90
 
        -rm --force --recursive keydir confdir
 
90
        -rm --force --recursive keydir
91
91
 
92
92
check:
93
93
        ./mandos --check
94
94
 
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
 
95
run-client: all
 
96
        -mkdir keydir
 
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
101
100
 
102
 
# Used by run-client
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
110
 
 
111
 
# Run the server with a local config
112
 
run-server: confdir/mandos.conf confdir/clients.conf
113
 
        ./mandos --debug --configdir=confdir
114
 
 
115
 
# Used by run-server
116
 
confdir/mandos.conf: mandos.conf
117
 
        install --directory confdir
118
 
        install $^ $@
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 >> $@
 
101
run-server:
 
102
        ./mandos --debug --configdir=.
124
103
 
125
104
install: install-server install-client
126
105