(see https://github.com/cliffordwolf/yosys/pull/28)
passes/techmap/stdcells.inc: techlibs/common/stdcells.v
echo "// autogenerated from $<" > $@.new
- od -v -td1 -w1 $< | awk 'BEGIN { print "static char stdcells_code[] = {"; } $$2 != "" { print $$2 ","; } \
- END { print 0 "};"; }' | fmt >> $@.new
+ echo "static char stdcells_code[] = {" >> $@.new
+ od -v -td1 -An $< | $(SED) -e 's/[0-9][0-9]*/&,/g' >> $@.new
+ echo "0};" >> $@.new
mv $@.new $@
passes/techmap/techmap.o: passes/techmap/stdcells.inc