Some fixed in "make vcxsrc" srcfiles.txt creation
authorClifford Wolf <clifford@clifford.at>
Tue, 11 Nov 2014 23:45:21 +0000 (00:45 +0100)
committerClifford Wolf <clifford@clifford.at>
Tue, 11 Nov 2014 23:45:21 +0000 (00:45 +0100)
Makefile

index 4cf7904670a848ad506fb4f35123bb804b3f1148..057ef43b75023578f6cb43c7fbfe4d8ef6b4a6cc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -318,8 +318,8 @@ qtcreator:
 
 vcxsrc: $(GENFILES) $(EXTRA_TARGETS)
        rm -rf yosys-win32-vcxsrc-$(YOSYS_VER){,.zip}
-       set -e; for f in $(shell ls $(filter %.cc $.cpp,$(GENFILES)) $(addsuffix .cc,$(basename $(OBJS)) $(addsuffix .cpp,$(basename $(OBJS)))) 2> /dev/null); do \
-               echo "Analyse: $$f" >&2; cpp -std=c++11 -MM -I. -D_YOSYS_ $$f; done | sed 's,.*:,,; s,//*,/,g; s,/[^/]*/\.\./,/,g; y, \\,\n\n,;' | grep '^[^/]' | sort -u > srcfiles.txt
+       set -e; for f in $(wildcard $(filter %.cc %.cpp,$(GENFILES)) $(addsuffix .cc,$(basename $(OBJS))) $(addsuffix .cpp,$(basename $(OBJS))) 2>/dev/null); do \
+               echo "Analyse: $$f" >&2; cpp -std=c++11 -MM -I. -D_YOSYS_ $$f; done | sed 's,.*:,,; s,//*,/,g; s,/[^/]*/\.\./,/,g; y, \\,\n\n,;' | grep '^[^/]' | sort -u | grep -v kernel/version_ > srcfiles.txt
        bash misc/create_vcxsrc.sh yosys-win32-vcxsrc $(YOSYS_VER) $(GIT_REV)
        echo "namespace Yosys { extern const char *yosys_version_str; const char *yosys_version_str=\"Yosys (Version Information Unavailable)\"; }" > kernel/version.cc
        zip yosys-win32-vcxsrc-$(YOSYS_VER)/genfiles.zip $(GENFILES) kernel/version.cc