aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/StudioIntegration
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-01-11 22:43:17 +0000
committerDean Camera <dean@fourwalledcubicle.com>2013-01-11 22:43:17 +0000
commited372b031c75fdc206844b3e9b01ce837193ac80 (patch)
tree82c555b479feb70d9a6b758bcdff8fc9a239db67 /LUFA/StudioIntegration
parentcff8a751bb4b6174bfc226dee72bec9cb9363122 (diff)
downloadlufa-ed372b031c75fdc206844b3e9b01ce837193ac80.tar.gz
lufa-ed372b031c75fdc206844b3e9b01ce837193ac80.tar.bz2
lufa-ed372b031c75fdc206844b3e9b01ce837193ac80.zip
Alter VSIX build script to verify all referenced filenames in all modules and projects, rather than just the core modules. Fix discovered errors in the project XML files.
Diffstat (limited to 'LUFA/StudioIntegration')
-rw-r--r--LUFA/StudioIntegration/makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/LUFA/StudioIntegration/makefile b/LUFA/StudioIntegration/makefile
index 49f3c35e3..c0fd278af 100644
--- a/LUFA/StudioIntegration/makefile
+++ b/LUFA/StudioIntegration/makefile
@@ -18,7 +18,7 @@ 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
+all: generate_xml check_filenames generate_vsix
clean:
@rm $(TEMP_MANIFEST_XML) $(MODULE_OUTPUT_XML) $(EXTENSION_OUTPUT_XML)
@@ -69,12 +69,16 @@ generate_vsix: $(EXTENSION_OUTPUT_XML) $(MODULE_OUTPUT_XML)
@cd $(LUFA_ROOT)/../ && zip LUFA.vsix -q contents.zip exampleProjects.xml content.xml.cache License.txt Preview.png PreviewThumb.png "[Content_Types].xml" extension.vsixmanifest asf-manifest.xml extension.xml
@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 \
- if ( ! test -f "$(LUFA_ROOT)/$$i" ); then \
- echo "Source file $$i does not exist!"; \
- exit 1; \
- fi; \
+check_filenames: $(MODULE_OUTPUT_XML)
+ @echo Verifying referenced filenames of ASF.xml modules...
+ @for f in `find $(LUFA_ROOT)/../ -name "asf.xml"`; do \
+ for i in `xsltproc XSLT/lufa_filelist_transform.xslt $$f | grep -v "^<" | sed -e "/^$$/d"`; do \
+ if ( ! test -f "`dirname $$f`/$$i" ); then \
+ echo "Source file $$i referenced in $$f does not exist!"; \
+ exit 1; \
+ fi; \
+ done; \
done;
+ @echo Verified referenced filenames of ASF.xml modules.
.PHONY: all clean generate_xml generate_vsix check_filenames