File: makefile

package info (click to toggle)
apt 1.0.9.8
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 16,100 kB
  • sloc: cpp: 50,948; sh: 11,941; xml: 4,130; makefile: 854; perl: 209; python: 28
file content (37 lines) | stat: -rw-r--r-- 909 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- make -*-
BASE=../..
SUBDIR=doc/en

# Bring in the default rules
include ../../buildlib/defaults.mak

# Do not use XMLTO, build the manpages directly with XSLTPROC
ifdef XSLTPROC
# generate a list of accepted man page translations
SOURCE = $(patsubst ../%.xml,%,$(wildcard ../*.?.xml))
INCLUDES = ../apt.ent ../apt-verbatim.ent apt-vendor.ent
STYLESHEET=../manpage-style.xsl

LOCAL := manpage-$(firstword $(SOURCE))
$(LOCAL)-LIST := $(SOURCE)

apt-vendor.ent: ../../vendor/current/apt-vendor.ent
	ln -sf $(shell readlink -f $^) $@

# Install generation hooks
manpages: $($(LOCAL)-LIST)

$($(LOCAL)-LIST) :: % : ../%.xml $(STYLESHEET) $(INCLUDES)
	echo Creating man page $@
	$(XSLTPROC) -o $@ $(STYLESHEET) $<

# Clean rule
.PHONY: clean/$(LOCAL)
veryclean: clean/$(LOCAL)
clean: clean/$(LOCAL)
clean/$(LOCAL):
	-rm -rf $($(@F)-LIST) apt-vendor.ent
endif

# Chain to the manpage rule
include $(MANPAGE_H)