Update all patches
[rrq/maintain_lilo.git] / debian / patches / 10_fix-src-makefile.patch
1 Package:     lilo
2 Subject:     10 fix src makefile
3 Author:      Joachim Wiedorn <ad_debian at joonet.de>
4 Forwarded:   no
5 Last-Update: 2013-06-07
6
7 The newer dash shell do not want "-x" inside an makefile.
8 In the long version it is running without errors. Now
9 lilo.static will stored to /sbin/ too.
10 ---
11
12 diff -urN s09/src/Makefile s10/src/Makefile
13 --- s09/src/Makefile    2013-06-07 22:46:42.315254388 +0200
14 +++ s10/src/Makefile    2013-06-07 22:44:13.000000000 +0200
15 @@ -245,7 +245,10 @@
16  
17         strip lilo
18         cp lilo $$DESTDIR$(SBIN_DIR)/lilo
19 -       [ -x lilo.static ] && strip lilo.static
20 +       if [ -x lilo.static ]; then \
21 +         strip lilo.static; \
22 +         cp lilo.static $$DESTDIR$(SBIN_DIR)/lilo.static; \
23 +       fi
24         cp ../mkrescue $$DESTDIR$(USRSBIN_DIR)/mkrescue
25         cp ../keytab-lilo.pl $$DESTDIR$(USRSBIN_DIR)/keytab-lilo
26