POSIX sh version of mkversion

Most targeted platforms have "sh" and don't need Perl as requirement.
Still Perl script is present as fallback.
This commit is contained in:
Philippe Teuwen 2019-08-29 20:58:36 +02:00
commit 8987e956ac
8 changed files with 67 additions and 6 deletions

View file

@ -36,7 +36,7 @@ OBJS = $(OBJDIR)/bootrom.s19
# version.c should be remade on every compilation
version.c: default_version.c
$(info [=] GEN $@)
$(Q)perl ../tools/mkversion.pl .. > $@ || $(COPY) $^ $@
$(Q)sh ../tools/mkversion.sh > $@ || perl ../tools/mkversion.pl > $@ || $(COPY) $^ $@
all: $(OBJS)