Add extra LUFA TAR archive export exclusions.
[pub/USBasp.git] / LUFA / makefile
index 9e68d3c..0ff15c9 100644 (file)
@@ -78,7 +78,7 @@ ifeq ($(origin LUFA_PATH), undefined)
    doxygen:
        @echo Generating LUFA Library Documentation...
 
-       @if ( ( cat Doxygen.conf ; echo "PROJECT_NUMBER=`grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`" ) | doxygen - 2>&1 | grep "warning" ;); then \
+       @if ( ( cat Doxygen.conf ; echo "PROJECT_NUMBER=`grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`" ) | doxygen - 2>&1 | grep ": warning:" ;); then \
          exit 1; \
        fi;
 
@@ -88,9 +88,14 @@ ifeq ($(origin LUFA_PATH), undefined)
        rm -rf Documentation
 
    checksource:
+   
+   export_tar:
+       @echo Exporting LUFA library to a TAR archive...
+       @tar -cf LUFA_`grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`.tar --directory=. --exclude=Documentation --exclude=DoxygenPages --exclude=CodeTemplates --exclude=Doxygen.conf --exclude=*.tar *
+       @echo Export LUFA_`grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`.tar complete.
 
    version:
        @echo "LUFA `grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`"
 
-   .PHONY: all clean clean_list doxygen clean_doxygen version
+   .PHONY: all clean clean_list doxygen clean_doxygen checksource export_tar version
 endif