File plymouth-lite-fix_makefile.patch of Package plymouth-lite

--- Makefile.orig	2010-03-17 08:01:42.000000000 +0100
+++ Makefile	2010-03-17 08:51:52.000000000 +0100
@@ -1,14 +1,16 @@
+CC=gcc
+OPTFLAGS = -O2 -march=core2 -mtune=generic
+PREFIX=/usr
+DESTDIR=
 
 ply-image: ply-image.c ply-frame-buffer.c Makefile
-	gcc -O2 -march=core2 -mtune=generic -lm `pkg-config --cflags libpng12` `pkg-config --libs libpng12` ply-image.c ply-frame-buffer.c -o ply-image
+	$(CC) $(OPTFLAGS) -o ply-image ply-image.c ply-frame-buffer.c `pkg-config --cflags libpng12` `pkg-config --libs libpng12` -lm
 	
 clean:
 	rm -f ply-image *~ gmon.out
 	
 install: ply-image
-	mkdir -p $(DESTDIR)/usr/bin	
-	mkdir -p $(DESTDIR)/usr/share/plymouth
-	cp ply-image $(DESTDIR)/usr/bin
-	cp splash.png $(DESTDIR)/usr/share/plymouth/splash.png
+	install -D -m0755 ply-image "$(DESTDIR)$(PREFIX)/bin/ply-image"
+	install -D -m0644 splash.png "$(DESTDIR)$(PREFIX)/share/plymouth/splash.png"
+	
 	
-	
\ No newline at end of file
openSUSE Build Service is sponsored by