]> rtime.felk.cvut.cz Git - fpga/virtex2/msp_motion.git/commitdiff
Dependency changed
authorVladimir Burian <buriavl2@fel.cvut.cz>
Mon, 25 Jul 2011 19:34:56 +0000 (21:34 +0200)
committerVladimir Burian <buriavl2@fel.cvut.cz>
Mon, 25 Jul 2011 19:42:24 +0000 (21:42 +0200)
Project is not dependant on the *.prj files, but directly on HDL source
files.

build/Makefile

index bf7d0f769fe03e14dbd5a89b8e7f76f3bc30cd6b..943fb60ba1b2d57a095fd87cab66c25cbaba3e51 100644 (file)
@@ -114,10 +114,10 @@ endif
 
 
 synthesize: $(NGC)
-re-synthesize $(NGC): $(addprefix $(SRC)/,$(PRJ))
+re-synthesize $(NGC): $(SRCPRJ)
        echo " \
          run \
-         $(addprefix -ifn $(SRC)/,$(PRJ)) \
+         $(addprefix -ifn ,$(SRCPRJ)) \
          -ifmt mixed \
          -ofn $(TOP).ngc \
          -ofmt NGC \
@@ -181,10 +181,7 @@ clean:
 %.d: %.prj
        @$(MAKEDEPEND)
 
-%.prj:
-       touch $@
-
--include $(addprefix $(SRC)/,$(PRJ:.prj=.d))
+-include $(SRCPRJ:.prj=.d)
 
 #===============================================================================
 
@@ -194,6 +191,6 @@ MAKEDEPEND = sed \
   -e 's/^ //' -e 's/ $$//' \
   -e '/"/d' \
   -e '/^$$/d' \
-  -e 's|\(.*\) \(.*\) \(.*\)|$<: $(dir $<)\3\n$(dir $<)\3:\n|' \
+  -e 's|\(.*\) \(.*\) \(.*\)|$(NGC) $(NCD): $(dir $<)\3\n$(dir $<)\3:\n|' \
   <$< >$@