~ubuntu-branches/ubuntu/lucid/dh-kpatches/lucid

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Yann Dirson
  • Date: 2004-10-24 17:16:12 UTC
  • mfrom: (1.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041024171612-nscnf579yxbdnbow
Tags: 0.99.35
Added support for single irregular kernel versions like 2.6.8.1 (patch
from Norbert Buchmuller, closes: #274410).

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
mandir          = ${prefix}/share/man
8
8
man1dir         = ${mandir}/man1
9
9
 
10
 
SCRIPT          = dh_installkpatches
11
 
TEMPLATES       = apply.tmpl unpatch.tmpl
12
 
 
13
 
all: ${SCRIPT}
 
10
DHSCRIPT        = dh_installkpatches
 
11
OTHERSCRIPTS    = lskpatches
 
12
TEMPLATES       = apply.tmpl unpatch.tmpl register-patch
 
13
VERSION         = $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2)
 
14
 
 
15
NOWEBSRC        = dh-kpatches.nw
 
16
NOWEBOUTSRC     = $(shell noroots ${NOWEBSRC} | sed 's/<<\(.*\)>>/\1/')
 
17
 
 
18
 
 
19
all: ${DHSCRIPT} ${TEMPLATES}
14
20
        make -C doc all
15
21
 
16
 
${SCRIPT}: ${SCRIPT}.in
17
 
        sed -e s=@TMPLDIR@=${datadir}= <$< >$@
 
22
${DHSCRIPT}: ${DHSCRIPT}.in
 
23
        sed -e s=@TMPLDIR@=${datadir}= -e s=@DHKPVERS@=${VERSION}=<$< >$@
18
24
        chmod 755 $@
19
25
 
 
26
internals: ${NOWEBSRC:.nw=.ps} ${NOWEBSRC:.nw=.html}
 
27
 
 
28
${NOWEBOUTSRC}: % : ${NOWEBSRC}
 
29
        notangle -R$@ $< | cpif $@
 
30
 
 
31
%.html: %.nw
 
32
        noweave -html -delay \
 
33
          -filter "noweb/guesslang ${NOWEBOUTSRC} | noweb/inheritlang" \
 
34
          -filter "noweb/htmltoc | noweb/enscript-html --color" \
 
35
          -x \
 
36
          $< > $@
 
37
 
 
38
%.ps: dh-kpatches.book %.html
 
39
        htmldoc --batch $< || test $$? = 4
 
40
 
20
41
clean:
21
 
        rm -rf ${SCRIPT}
 
42
        rm -f ${DHSCRIPT} ${NOWEBOUTSRC}
 
43
        rm -rf ${NOWEBSRC:.nw=-html}
 
44
        rm -f *.aux *.log *.dvi *.ps *.latex
22
45
        make -C doc clean
23
46
 
24
47
install: all
25
48
        install -m755 -d ${DESTDIR}${datadir} ${DESTDIR}${bindir}
26
 
        install -m755 ${SCRIPT} ${DESTDIR}${bindir}
 
49
        install -m755 ${DHSCRIPT} ${OTHERSCRIPTS} ${DESTDIR}${bindir}
27
50
        install -m644 ${TEMPLATES} ${DESTDIR}${datadir}
28
51
        make -C doc install
29
52
 
30
53
uninstall:
31
 
        rm -f ${DESTDIR}${bindir}/${SCRIPT}
 
54
        rm -f ${DESTDIR}${bindir}/${DHSCRIPT}
 
55
        -cd ${DESTDIR}${bindir} && rm -f ${OTHERSCRIPTS}
32
56
        rm -rf ${DESTDIR}${datadir}
33
57
        make -C doc uninstall