File: Makefile

package info (click to toggle)
xml-core 0.13
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 216 kB
  • ctags: 29
  • sloc: perl: 553; makefile: 161; sh: 46; xml: 10
file content (59 lines) | stat: -rw-r--r-- 1,454 bytes parent folder | download | duplicates (5)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
## ----------------------------------------------------------------------
## Makefile : makefile for xml-core/debhelper
## ----------------------------------------------------------------------

## ----------------------------------------------------------------------
include ../MAKE/include

## ----------------------------------------------------------------------
## Debhelper directory definitions
debhelper_dir	= $(share_dir)/debhelper
autoscripts_dir	= $(debhelper_dir)/autoscripts

## ----------------------------------------------------------------------
## Debhelper file definitions
autoscripts	= \
		postinst-xmlcatalog \
		postrm-xmlcatalog \
		prerm-xmlcatalog
dh_scripts	= \
		dh_installxmlcatalogs
man1s		= \
		$(addsuffix .$(man1_ext),$(dh_scripts))

## ----------------------------------------------------------------------
## Targets
all:		$(man1s)

%.$(man1_ext):	%

		$(POD2MAN) --section $(man1_ext) --center Debhelper ${<} ${@}

install:

		set -e; \
		$(INSTALL_DIR) $(autoscripts_dir); \
		for f in $(autoscripts); \
		do \
			$(INSTALL_FILE) $${f} $(autoscripts_dir); \
		done

		set -e; \
		$(INSTALL_DIR) $(bin_dir); \
		for f in $(dh_scripts); \
		do \
			$(INSTALL_BIN) $${f} $(bin_dir); \
		done

		set -e; \
		$(INSTALL_DIR) $(man1_dir); \
		for f in $(man1s); \
		do \
			$(INSTALL_FILE) $${f} $(man1_dir); \
		done

.PHONY:		\
		all \
		install

## ----------------------------------------------------------------------