mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-15 08:13:34 +08:00
aaa2b660a9
Close #2269 [Peter: fix Makefile patch to not strip wrong file, rename hayes patch] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
Install the setserial program in /usr/bin instead of /bin, and make
|
|
sure that the directories (especially the manpages directory) are
|
|
created before installing files to them. This is similar to what
|
|
automake does.
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
---
|
|
Makefile.in | 7 ++++---
|
|
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
|
|
Index: setserial-2.17/Makefile.in
|
|
===================================================================
|
|
--- setserial-2.17.orig/Makefile.in
|
|
+++ setserial-2.17/Makefile.in
|
|
@@ -26,9 +26,10 @@ setserial.cat: setserial.8
|
|
nroff -man setserial.8 > setserial.cat
|
|
|
|
install: setserial setserial.8
|
|
- $(INSTALL_PROGRAM) setserial $(DESTDIR)/bin
|
|
- $(STRIP) $(DESTDIR)/bin/setserial
|
|
- $(INSTALL_DATA) setserial.8 $(DESTDIR)/usr/man/man8
|
|
+ mkdir -p $(DESTDIR)/usr/bin
|
|
+ $(INSTALL_PROGRAM) setserial $(DESTDIR)/usr/bin
|
|
+ mkdir -p $(DESTDIR)/usr/share/man/man8
|
|
+ $(INSTALL_DATA) setserial.8 $(DESTDIR)/usr/share/man/man8
|
|
|
|
clean:
|
|
$(RM) setserial setserial.o setserial.cat *~
|