File: rules

package info (click to toggle)
ldp-es 20002103-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,304 kB
  • ctags: 574
  • sloc: ansic: 1,628; makefile: 696; sh: 206; awk: 107; perl: 28
file content (96 lines) | stat: -rwxr-xr-x 3,327 bytes parent folder | download
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# This version is for packages that are architecture independent.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PACKAGE_NAME := ldp-es

PREFIX_NAME  := debian
INSTALL_FILE := install -o root -g root -m 644 
SHAREDIR := /usr/share
DOCBASEDIR := $(SHAREDIR)/doc-base/
SHAREPDIR := $(PREFIX_NAME)/tmp/usr/share
DOCDIR := $(SHAREDIR)/doc/ldp-es
MAKE_DIR := install -d -o root -g root -m 755

# This are the directories for the source of the documents
GARL = garl-1.0.src
LIPP = lipp-1.1
GLUP = glup-0.6-1.1
GULP = gulp-0.11.src

build: build-stamp
build-stamp:
	dh_testdir
	cd ${GARL}; make 
	cd ${LIPP}; make 
	cd ${GULP} ; make
	cd ${GLUP} ; make
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	cd ${GARL}; make  clean
	cd ${LIPP}; make  clean
	cd ${GULP} ; make clean
	cd ${GLUP} ; make clean
	rm -rf build-stamp install-stamp debian/ldp-es-garl debian/ldp-es-glup debian/ldp-es-lipp debian/ldp-es-gulp debian/tmp
	dh_clean

install: install-stamp
install-stamp: build-stamp
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs -A
	cd ${GARL}; $(MAKE) -f Makefile INSTALL_PROGRAM='install -c -d'  \
		DOC_DIR='../${PREFIX_NAME}/ldp-es-garl/$(DOCDIR)/garl'  install
	cd ${LIPP}; $(MAKE) -f Makefile INSTALL_PROGRAM='install -c -d'  \
			DOC_DIR='../${PREFIX_NAME}/ldp-es-lipp/$(DOCDIR)/lipp'  install
	cd ${GULP}; $(MAKE) -f Makefile INSTALL_PROGRAM='install -c -d'  \
		DOC_DIR='../${PREFIX_NAME}/ldp-es-gulp/$(DOCDIR)/gulp'  install
	cd ${GLUP}; $(MAKE) -f Makefile INSTALL_PROGRAM='install -c -d'  \
		DOC_DIR='../${PREFIX_NAME}/ldp-es-glup/$(DOCDIR)/glup'  install
	$(INSTALL_FILE) doc-base/ldp-es-garl ${PREFIX_NAME}/ldp-es-garl/$(DOCBASEDIR)
	$(INSTALL_FILE) doc-base/ldp-es-lipp ${PREFIX_NAME}/ldp-es-lipp/$(DOCBASEDIR)
	$(INSTALL_FILE) doc-base/ldp-es-glup ${PREFIX_NAME}/ldp-es-glup/$(DOCBASEDIR)
	$(INSTALL_FILE) doc-base/ldp-es-gulp ${PREFIX_NAME}/ldp-es-gulp/$(DOCBASEDIR)
	touch install-stamp


# Build architecture-independent files here.
binary-indep: build install
	dh_testdir
	dh_testroot
	
	$(MAKE_DIR) $(SHAREDIR)/doc-base 
        
	dh_installdebconf
	dh_installdocs  LUCAS-HOWTO README README.es debian/LEEME.Debian debian/PORHACER.Debian debian/README.Debian
	dh_installdocs -pldp-es-garl $(GARL)/AUTORIZACION $(GARL)/HISTORIA $(GARL)/LEEME.YA $(GARL)/Normas-Revision-1.0.txt $(GARL)/SOURCE $(GARL)/TRADUCTORES $(GARL)/Thanks  $(GARL)/PORHACER $(GARL)/LICENCIA $(GARL)/README
	dh_installdocs -pldp-es-glup $(GLUP)/CREDIT $(GLUP)/leame 
	dh_installdocs -pldp-es-gulp $(GULP)/AUTORIZACIONES $(GULP)/HISTORIA $(GULP)/LEEME.YA $(GULP)/PORHACER $(GULP)/README $(GULP)/TRADUCTORES 
	dh_installdocs -pldp-es-lipp $(LIPP)/AUTORIZACION $(LIPP)/LEEME $(LIPP)/LEEME.1.1 $(LIPP)/PorHacer $(LIPP)/README $(LIPP)/TRADUCTORES
	dh_installchangelogs
	dh_installexamples
	dh_installexamples -pldp-es-gulp $(GULP)/examples
	dh_installmenu
	dh_installdeb	
	dh_compress
	dh_fixperms
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install