Skip to content

Commit

Permalink
tools: replace echo -n with printf
Browse files Browse the repository at this point in the history
Signed-off-by: Taiju Yamada <[email protected]>
  • Loading branch information
cielavenir authored and pablodelara committed Mar 21, 2024
1 parent 69d4a8a commit 4b74fb2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/gen_nmake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Makefile.nmake tst.nmake: FORCE
@echo '' >> $@
@echo '# This file can be auto-regenerated with $$make -f Makefile.unx Makefile.nmake' >> $@
@echo '' >> $@
@echo -n 'objs =' >> $@
@printf 'objs =' >> $@
@$(foreach o, $(subst /,\\,$(objs:.o=.obj)), printf " %s\n\t%s" \\ $(o) >> $@; )
@echo '' >> $@
@echo '' >> $@
Expand Down Expand Up @@ -60,7 +60,7 @@ Makefile.nmake tst.nmake: FORCE
@echo '' >> $@
ifneq (,$(examples))
@echo "# Examples" >> $@
@echo -n 'ex =' >> $@
@printf 'ex =' >> $@
@$(foreach ex, $(notdir $(examples)), printf " %s\n\t%s.exe" \\ $(ex) >> $@; )
@echo '' >> $@
@echo '' >> $@
Expand All @@ -75,7 +75,7 @@ endif
@echo ' link /out:$$@ $$(LINKFLAGS) isa-l.lib $$?' >> $@
@echo '' >> $@
@echo '# Check tests' >> $@
@echo -n 'checks =' >> $@
@printf 'checks =' >> $@
@$(foreach check, $(notdir $(check_tests)), printf " %s\n\t%s.exe" \\ $(check) >> $@; )
@echo '' >> $@
@echo '' >> $@
Expand All @@ -85,22 +85,22 @@ endif
@echo ' !$$?' >> $@
@echo '' >> $@
@echo '# Unit tests' >> $@
@echo -n 'tests =' >> $@
@printf 'tests =' >> $@
@$(foreach test, $(notdir $(unit_tests)), printf " %s\n\t%s.exe" \\ $(test) >> $@; )
@echo '' >> $@
@echo '' >> $@
@echo 'tests: lib $$(tests)' >> $@
@echo '$$(tests): $$(@B).obj' >> $@
@echo '' >> $@
@echo '# Performance tests' >> $@
@echo -n 'perfs =' >> $@
@printf 'perfs =' >> $@
@$(foreach perf, $(notdir $(perf_tests)), printf " %s\n\t%s.exe" \\ $(perf) >> $@; )
@echo '' >> $@
@echo '' >> $@
@echo 'perfs: lib $$(perfs)' >> $@
@echo '$$(perfs): $$(@B).obj' >> $@
@echo '' >> $@
@echo -n 'progs =' >> $@
@printf 'progs =' >> $@
@$(foreach prog, $(notdir $(bin_PROGRAMS)), printf " %s\n\t%s.exe" \\ $(prog) >> $@; )
@echo '' >> $@
@echo '' >> $@
Expand Down

0 comments on commit 4b74fb2

Please sign in to comment.