From: Johann Glaser Date: Sun, 17 Mar 2013 21:02:46 +0000 (+0100) Subject: add header to autogenerated file on its origin X-Git-Tag: yosys-0.2.0~713^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b8ebd694d95ed178b94af538f2694534b86a833;p=yosys.git add header to autogenerated file on its origin --- diff --git a/passes/techmap/Makefile.inc b/passes/techmap/Makefile.inc index ba365525d..2e90215e1 100644 --- a/passes/techmap/Makefile.inc +++ b/passes/techmap/Makefile.inc @@ -3,8 +3,10 @@ GENFILES += passes/techmap/stdcells.inc OBJS += passes/techmap/techmap.o passes/techmap/stdcells.inc: techlibs/stdcells.v + echo -n "// autogenerated from $< on " > $@.new + LANG=C date >> $@.new od -v -td1 -w1 $< | awk 'BEGIN { print "static char stdcells_code[] = {"; } $$2 != "" { print $$2 ","; } \ - END { print 0 "};"; }' | fmt > $@.new + END { print 0 "};"; }' | fmt >> $@.new mv $@.new $@ passes/techmap/techmap.o: passes/techmap/stdcells.inc