/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: Björn Påhlsson
  • Date: 2008-08-08 02:33:41 UTC
  • mto: (237.7.1 mandos) (24.1.154 mandos)
  • mto: This revision was merged to the branch mainline in revision 50.
  • Revision ID: belorn@braxen-20080808023341-34aft2vw4f35nzam
* clients.conf.xml: Renamed to "mandos-clients.conf.xml".

* Makefile (DOCBOOKTOMAN, DOCS): New
  (all): Include $(DOCS)
  (%.5: %.xml, %.8: %.xml, %.8mandos: %.xml): New.
  (clean): Also remove $(DOCS)

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
 
14
DOCBOOKTOMAN=xsltproc --nonet --param man.charmap.use.subset "0" --param make.year.ranges "1" --param make.single.year.ranges "1" --param man.output.quietly "1"
20
15
 
21
16
PROGS=mandos-client plugins.d/password-request plugins.d/password-prompt
22
17
DOCS=mandos.8 mandos-client.8mandos plugins.d/password-request.8mandos plugins.d/password-prompt.8mandos mandos.conf.5 mandos-clients.conf.5
26
21
all: $(PROGS) $(DOCS)
27
22
 
28
23
%.5: %.xml
29
 
        cd $(shell dirname $^); $(DOCBOOKTOMAN) $(shell basename $^)
 
24
        $(DOCBOOKTOMAN) $^
30
25
 
31
26
%.8: %.xml
32
 
        cd $(shell dirname $^); $(DOCBOOKTOMAN) $(shell basename $^)
 
27
        $(DOCBOOKTOMAN) $^
33
28
 
34
29
%.8mandos: %.xml
35
 
        cd $(shell dirname $^); $(DOCBOOKTOMAN) $(shell basename $^)
 
30
        $(DOCBOOKTOMAN) $^
 
31
        -mv ./$(shell basename $@) $@ 2>/dev/null
36
32
 
37
33
mandos-client: mandos-client.o
38
34
        $(LINK.o) -lgnutls $(COMMON) $^ $(LOADLIBES) $(LDLIBS) -o $@