aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-06-20 14:38:21 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-06-20 14:38:21 +0000
commitca9f89ce821db58532f1782da2b3d22e3ac961f3 (patch)
tree29cda8673e9de7ea22e927561623b5aca64e5030 /LUFA
parent5d7827a573b7c9d110b1a9b180b5c2596c50ea3b (diff)
downloadlufa-ca9f89ce821db58532f1782da2b3d22e3ac961f3.tar.gz
lufa-ca9f89ce821db58532f1782da2b3d22e3ac961f3.tar.bz2
lufa-ca9f89ce821db58532f1782da2b3d22e3ac961f3.zip
Add new "checksource" target to the library makefiles, for automated source file existance checking.
Diffstat (limited to 'LUFA')
-rw-r--r--LUFA/CodeTemplates/makefile_template.avr811
-rw-r--r--LUFA/CodeTemplates/makefile_template.uc311
-rw-r--r--LUFA/makefile4
3 files changed, 23 insertions, 3 deletions
diff --git a/LUFA/CodeTemplates/makefile_template.avr8 b/LUFA/CodeTemplates/makefile_template.avr8
index 106f81cdc..26a3b1445 100644
--- a/LUFA/CodeTemplates/makefile_template.avr8
+++ b/LUFA/CodeTemplates/makefile_template.avr8
@@ -689,6 +689,15 @@ doxygen:
clean_doxygen:
rm -rf Documentation
+checksource:
+ @for f in $(SRC) $(CPPSRC) $(ASRC); do \
+ if [ -f $$f ]; then \
+ echo "Found Source File: $$f" ; \
+ else \
+ echo "Source File Not Found: $$f" ; \
+ fi; done
+
+
# Create object files directory
$(shell mkdir $(OBJDIR) 2>/dev/null)
@@ -701,4 +710,4 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
.PHONY : all begin finish end sizebefore sizeafter gccversion \
build elf hex eep lss sym coff extcoff doxygen clean \
clean_list clean_doxygen program dfu flip flip-ee dfu-ee \
-debug gdb-config
+debug gdb-config checksource
diff --git a/LUFA/CodeTemplates/makefile_template.uc3 b/LUFA/CodeTemplates/makefile_template.uc3
index e56cb324a..e29e3a438 100644
--- a/LUFA/CodeTemplates/makefile_template.uc3
+++ b/LUFA/CodeTemplates/makefile_template.uc3
@@ -465,6 +465,15 @@ doxygen:
clean_doxygen:
rm -rf Documentation
+checksource:
+ @for f in $(SRC) $(CPPSRC) $(ASRC); do \
+ if [ -f $$f ]; then \
+ echo "Found Source File: $$f" ; \
+ else \
+ echo "Source File Not Found: $$f" ; \
+ fi; done
+
+
# Create object files directory
$(shell mkdir $(OBJDIR) 2>/dev/null)
@@ -476,5 +485,5 @@ $(shell mkdir $(OBJDIR) 2>/dev/null)
# Listing of phony targets.
.PHONY : all begin finish end sizebefore sizeafter gccversion \
build elf hex lss sym doxygen clean clean_list clean_doxygen \
-dfu flip
+dfu flip checksource
diff --git a/LUFA/makefile b/LUFA/makefile
index 58c60bc7a..e35ee089f 100644
--- a/LUFA/makefile
+++ b/LUFA/makefile
@@ -81,7 +81,9 @@ ifeq ($(origin LUFA_PATH), undefined)
clean_doxygen:
rm -rf Documentation
-
+
+ checksource:
+
version:
@echo "LUFA `grep LUFA_VERSION_STRING Version.h | cut -d'"' -f2`"