X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/78e6e4f4c237123f97bbfcc2e8fc0fda01fc1bd8..09b2254b33221e8a07466e91622313e20a7d7345:/LUFA/StudioIntegration/makefile diff --git a/LUFA/StudioIntegration/makefile b/LUFA/StudioIntegration/makefile index 442e8fdeb..860b5983d 100644 --- a/LUFA/StudioIntegration/makefile +++ b/LUFA/StudioIntegration/makefile @@ -16,6 +16,7 @@ EXTENSION_OUTPUT_XML := $(LUFA_ROOT)/../extension.xml MODULE_OUTPUT_XML := $(LUFA_ROOT)/asf.xml XML_FILES := $(filter-out $(TEMP_MANIFEST_FILE), $(shell ls *.xml)) LUFA_VERSION_NUM := $(shell grep LUFA_VERSION_STRING $(LUFA_ROOT)/Version.h | cut -d'"' -f2) +EXT_VERSION_NUM := $(shell date +"%y.%m.%d").$(LUFA_VERSION_NUM) all: check_filenames generate_xml generate_vsix @@ -48,8 +49,13 @@ generate_xml: $(TEMP_MANIFEST_XML) @rm $(TEMP_MANIFEST_XML) generate_vsix: $(EXTENSION_OUTPUT_XML) $(MODULE_OUTPUT_XML) - cp VSIX/* $(LUFA_ROOT)/../ - cd $(LUFA_ROOT)/../; zip LUFA_AS_Extension.vsix -r --exclude=*StudioIntegration* * + @echo "Creating VSIX Dependencies..." + @cp "VSIX/[Content_Types].xml" $(LUFA_ROOT)/../ + @xsltproc --stringparam extension-version "$(EXT_VERSION_NUM)" XSLT/lufa_vsmanifest_transform.xslt VSIX/extension.vsixmanifest > $(LUFA_ROOT)/../extension.vsixmanifest + + @echo "Generating Atmel Studio VSIX Extension file..." + @cd $(LUFA_ROOT)/../ && zip LUFA_AS_Extension.vsix -q -9 -r --exclude=*$(notdir $(DOXYGEN_TAG_FILE_XML)) --exclude=*StudioIntegration* * + @echo "Atmel Studio VSIX Extension file generated." check_filenames: $(TEMP_MANIFEST_XML) @for i in `xsltproc XSLT/lufa_filelist_transform.xslt $< | grep -v "^<" | sed -e "/^$$/d"`; do \ @@ -58,4 +64,4 @@ check_filenames: $(TEMP_MANIFEST_XML) fi; \ done; -.PHONY: all clean check_filenames generate_xml \ No newline at end of file +.PHONY: all clean generate_xml generate_vsix check_filenames \ No newline at end of file