On Sun, Mar 23, 2008 at 06:41:12PM +0100, maximilian attems wrote:
> On Sun, 23 Mar 2008, Robert Millan wrote:
> 
> > Attached patch fixed FTBFS on parallel builds (dpkg-buildpackage -j).
> 
> hmm tried it out,
> but i do not pretend to understand that Makefile as a simple
> make all just fails, but with your patch applied also does
> debuild -B
> 
> ln -sf /lib/libusplash.so.0 /home/max/src/usplash/debian/tmp/lib/libusplash.so
> /usr/bin/install -c -m 755 bogl/pngtobogl 
> /home/max/src/usplash/debian/tmp/usr/bin/pngtousplash
> /usr/bin/install: cannot stat `bogl/pngtobogl': No such file or directory
> make[1]: *** [install] Error 1
> make[1]: Leaving directory `/home/max/src/usplash'
> make: *** [install] Error 2
> debuild: fatal error at line 1253:
> fakeroot debian/rules binary-arch failed

How odd.  I see what could go wrong, but can't reproduce it myself.  Let me
know if this one works better.

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
--- ../usplash-0.5.8/Makefile	2007-10-15 11:20:39.000000000 +0200
+++ Makefile	2008-03-23 20:30:59.000000000 +0100
@@ -52,18 +52,23 @@
 bogl:
 	$(MAKE) -C bogl
 
+bogl/%:
+	$(MAKE) -C bogl $(subst bogl/,,$@)
+
 svgalib:
 	$(MAKE) -C svgalib
 
+svgalib/%:
+	$(MAKE) -C svgalib $(subst svgalib/,,$@)
+
 .c.o:
 	$(COMPILE) -o $@ -c $<
 
-.png.c:
-	./bogl/pngtobogl $< > $@
-
-.bdf.c:
-	./bogl/bdftobogl $< > $@
+%.c: bogl/pngtobogl %.png
+	$^ > $@
 
+%.c: bogl/bdftobogl %.bdf
+	$^ > $@
 
 install:
 	$(INSTALL) -d $(DESTDIR)/sbin $(DESTDIR)/usr/sbin $(DESTDIR)/lib $(DESTDIR)/usr/include $(DESTDIR)/usr/bin
@@ -87,5 +92,4 @@
 	-rm -f *.o
 
 
-.PHONY: all bogl svgalib install clean
-.SUFFIXES: .png .bdf
+.PHONY: all install clean

Reply via email to