Patchwork [4/5] petitboot: Fix make install

login
register
mail settings
Submitter Geoff Levand
Date Jan. 13, 2009, 1:31 a.m.
Message ID <496BEEFC.4020904@am.sony.com>
Download mbox | patch
Permalink /patch/18127/
State Accepted
Delegated to: Jeremy Kerr
Headers show

Comments

Geoff Levand - Jan. 13, 2009, 1:31 a.m.
Fix the make target install.

Fixes errors like these:
  /usr/bin/install: cannot stat `petitboot': No such file or directory

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
 rules.mk |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

Patch

--- a/rules.mk
+++ b/rules.mk
@@ -60,12 +60,11 @@  parser-test: $(parser_test_objs)
 	$(LINK.o) -o $@ $^
 
 install: all
-	$(INSTALL) -D petitboot $(DESTDIR)$(sbindir)/petitboot
-	$(INSTALL) -D petitboot-udev-helper \
-		$(DESTDIR)$(sbindir)/petitboot-udev-helper
-	$(INSTALL) -Dd $(DESTDIR)$(pkgdatadir)/artwork/
-	$(INSTALL) -t $(DESTDIR)$(pkgdatadir)/artwork/ \
-		$(foreach a,$(artwork),$(top_srcdir)/artwork/$(a))
+	$(INSTALL) -d $(DESTDIR)$(sbindir)/
+	$(INSTALL) discover/pb-discover $(uis) $(DESTDIR)$(sbindir)/
+	$(INSTALL) -d $(DESTDIR)$(pkgdatadir)/artwork/
+	$(INSTALL) $(addprefix $(top_srcdir)/ui/twin/artwork/,$(artwork)) \
+		$(DESTDIR)$(pkgdatadir)/artwork/
 
 dist:	$(PACKAGE)-$(VERSION).tar.gz