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>
$(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 .
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 $@ $<
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 $@ $<
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 $@ $<