X-Git-Url: http://rtime.felk.cvut.cz/gitweb/fpga/virtex2/msp_motion.git/blobdiff_plain/98ced3a20155c627d0c0f911fefa4536b5bbaea2..4021d097ad4ad60ebad5dd4e37639e7b782f986c:/build/Makefile diff --git a/build/Makefile b/build/Makefile index fa08461..c0bd56e 100644 --- a/build/Makefile +++ b/build/Makefile @@ -95,7 +95,7 @@ all: clean implement #=============================================================================== synthesize: $(NGC) -re-synthesize $(NGC): $(addrefix $(SRC)/,$(PRJ)) +re-synthesize $(NGC): $(addprefix $(SRC)/,$(PRJ)) echo " \ run \ $(addprefix -ifn $(SRC)/,$(PRJ)) \ @@ -160,16 +160,21 @@ clean: #=============================================================================== %.d: %.prj - @sed -e 's/#.*//' \ - -e 's/[ \t][ \t]*/ /g' \ - -e 's/^ //' -e 's/ $$//' \ - -e '/"/d' \ - -e '/^$$/d' \ - -e 's|\(.*\) \(.*\) \(.*\)|$<: $(dir $<)\3|' \ - <$< >$@ + @$(MAKEDEPEND) %.prj: touch $@ -include $(addprefix $(SRC)/,$(PRJ:.prj=.d)) +-include $(addprefix $(SRC)/,$(PRJ:.prj=.d)) + +#=============================================================================== + +MAKEDEPEND = sed \ + -e 's/\#.*//' \ + -e 's/[ \t][ \t]*/ /g' \ + -e 's/^ //' -e 's/ $$//' \ + -e '/"/d' \ + -e '/^$$/d' \ + -e 's|\(.*\) \(.*\) \(.*\)|$<: $(dir $<)\3\n$(dir $<)\3:\n|' \ + <$< >$@