/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

  • Committer: Teddy Hogeborn
  • Date: 2008-08-11 07:41:40 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080811074140-3wrl2jux1s0jy5kk
* mandos-client.c (print_out_password): Strip trailing '\n'.
  (main): Do not add trailing newline on fallback.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
CFLAGS=$(WARN) $(DEBUG) $(FORTIFY) $(COVERAGE) $(OPTIMIZE) $(LANGUAGE)
12
12
LDFLAGS=$(COVERAGE)
13
13
 
 
14
DOCBOOKTOMAN=xsltproc --nonet \
 
15
        --param man.charmap.use.subset          0 \
 
16
        --param make.year.ranges                1 \
 
17
        --param make.single.year.ranges         1 \
 
18
        --param man.output.quietly              1 \
 
19
        --param man.authors.section.enabled     0
 
20
 
14
21
PROGS=mandos-client plugins.d/password-request plugins.d/password-prompt
 
22
DOCS=mandos.8 mandos-client.8mandos plugins.d/password-request.8mandos plugins.d/password-prompt.8mandos mandos.conf.5 mandos-clients.conf.5
15
23
 
16
24
objects=$(shell for p in $(PROGS); do echo $${p}.o; done)
17
25
 
18
 
all: $(PROGS)
 
26
all: $(PROGS) $(DOCS)
 
27
 
 
28
%.5: %.xml
 
29
        cd $(shell dirname $^); $(DOCBOOKTOMAN) $(shell basename $^)
 
30
 
 
31
%.8: %.xml
 
32
        cd $(shell dirname $^); $(DOCBOOKTOMAN) $(shell basename $^)
 
33
 
 
34
%.8mandos: %.xml
 
35
        cd $(shell dirname $^); $(DOCBOOKTOMAN) $(shell basename $^)
19
36
 
20
37
mandos-client: mandos-client.o
21
38
        $(LINK.o) -lgnutls $(COMMON) $^ $(LOADLIBES) $(LDLIBS) -o $@
29
46
.PHONY : all clean distclean run-client run-server
30
47
 
31
48
clean:
32
 
        -rm --force $(PROGS) $(objects) core
 
49
        -rm --force $(PROGS) $(objects) $(DOCS) core
33
50
 
34
51
distclean: clean
35
52
mostlyclean: clean