3e78fa95a731ba877b8ea24d60018553d3d37fbf
[rrq/maintain_lilo.git] / debian / patches / 09_use-of-newer-debhelper.patch
1 Package:     lilo
2 Subject:     use of newer debhelper 7.0.50 and above
3 Author:      Joachim Wiedorn <ad_debian at joonet.de>
4 Forwarded:   no
5 Last-Update: 2011-05-06
6
7 With the possibilities of debhelper of 7.0.50 and above and some
8 direct patches in the sources the rules can be reduced to few
9 lines.
10 ---
11
12 diff -urN s08/images/Makefile s09/images/Makefile
13 --- s08/images/Makefile 2011-05-06 17:40:18.924705158 +0200
14 +++ s09/images/Makefile 2011-05-06 17:45:57.304713832 +0200
15 @@ -23,11 +23,11 @@
16  install: all
17         mkdir -p $$DESTDIR$(BOOT_DIR)
18         install -m 0644  $(BMPS4) $(BMPS8)  $$DESTDIR$(BOOT_DIR)
19 -       for i in $(NAME8); do
20 -               cp $(NAME8)_256c.dat $$DESTDIR$(BOOT_DIR)
21 +       for i in $(NAME8); do \
22 +               cp $${i}_256c.dat $$DESTDIR$(BOOT_DIR)/$${i}.dat; \
23         done
24 -       for i in $(NAME4); do
25 -               cp $(NAME4)_16c.dat $$DESTDIR$(BOOT_DIR)
26 +       for i in $(NAME4); do \
27 +               cp $${i}_16c.dat $$DESTDIR$(BOOT_DIR)/$${i}.dat; \
28         done
29  
30  clean:
31 @@ -37,4 +37,7 @@
32  
33  uninstall:
34         (cd $$DESTDIR$(BOOT_DIR); rm -f $(BMPS4) $(BMPS8))
35 +       for i in $(NAME4) $(NAME8); do \
36 +               rm -f $$DESTDIR$(BOOT_DIR)/$${i}.dat; \
37 +       done
38  
39 diff -urN s08/Makefile s09/Makefile
40 --- s08/Makefile        2011-04-09 17:14:05.000000000 +0200
41 +++ s09/Makefile        2011-05-06 17:45:57.304713832 +0200
42 @@ -8,6 +8,13 @@
43  #
44  
45  #
46 +# everything needed to run, just short of installation
47 +#
48 +all: test
49 +       make -C src all
50 +       make -C images all
51 +
52 +#
53  #  make help
54  #
55  help:
56 @@ -34,13 +42,6 @@
57         @echo ""
58  
59  #
60 -# everything needed to run, just short of installation
61 -#
62 -all: test
63 -       $(MAKE) -C src all
64 -       $(MAKE) -C images all
65 -
66 -#
67  # everything above plus the statically linked version
68  #
69  alles: test