libv4l: remove .orig and .rej files on make clean and simplify make export
authorhans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain>
Wed, 11 Mar 2009 12:27:13 +0000 (13:27 +0100)
committerhans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain>
Wed, 11 Mar 2009 12:27:13 +0000 (13:27 +0100)
From: Hans de Goede <hdegoede@redhat.com>

libv4l: remove .orig and .rej files on make clean and simplify make export

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
lib/Makefile
lib/libv4l1/Makefile
lib/libv4l2/Makefile
lib/libv4lconvert/Makefile

index a607bc7..79cc40b 100644 (file)
@@ -13,10 +13,5 @@ clean:
        $(MAKE) -C libv4l1 V4L2_LIB_VERSION=$(V4L2_LIB_VERSION) $@
 
 export: clean
-       mkdir /tmp/libv4l-$(V4L2_LIB_VERSION)
-       cp -a . /tmp/libv4l-$(V4L2_LIB_VERSION)/
-       cd /tmp/ && \
-               tar cvf /tmp/libv4l-$(V4L2_LIB_VERSION).tar\
-               libv4l-$(V4L2_LIB_VERSION)
-       gzip /tmp/libv4l-$(V4L2_LIB_VERSION).tar
-       rm -rf /tmp/libv4l-$(V4L2_LIB_VERSION)
+       tar --transform s/^\./libv4l-$(V4L2_LIB_VERSION)/g -zcvf \
+               /tmp/libv4l-$(V4L2_LIB_VERSION).tar.gz .
index 80ba282..9f30cbb 100644 (file)
@@ -69,7 +69,7 @@ endif
        install -m 644 libv4l1.pc $(DESTDIR)$(LIBDIR)/pkgconfig
 
 clean::
-       rm -f *.a *.so* *.o *.d libv4l1.pc log *~
+       rm -f *.a *.so* *.o *.d libv4l1.pc log *~ *.orig *.rej
 
 %.o: %.c
        $(CC) -c -MMD $(CPPFLAGS) $(CFLAGS) -o $@ $<
index bb9e407..614b36c 100644 (file)
@@ -68,7 +68,7 @@ endif
        install -m 644 libv4l2.pc $(DESTDIR)$(LIBDIR)/pkgconfig
 
 clean::
-       rm -f *.a *.so* *.o *.d libv4l2.pc log *~
+       rm -f *.a *.so* *.o *.d libv4l2.pc log *~ *.orig *.rej
 
 %.o: %.c
        $(CC) -c -MMD $(CPPFLAGS) $(CFLAGS) -o $@ $<
index 22c512c..16ff2e1 100644 (file)
@@ -57,7 +57,7 @@ endif
        install -m 644 libv4lconvert.pc $(DESTDIR)$(LIBDIR)/pkgconfig
 
 clean::
-       rm -f *.a *.so* *.o *.d libv4lconvert.pc log *~
+       rm -f *.a *.so* *.o *.d libv4lconvert.pc log *~ *.orig *.rej
 
 %.o: %.c
        $(CC) -c -MMD $(CPPFLAGS) $(CFLAGS) -o $@ $<