[fix] makefile

This commit is contained in:
Christian Fraß 2023-07-11 20:40:04 +02:00
parent 6ff79fe093
commit e25cb5915b

View file

@ -5,6 +5,7 @@ cmd_typescript_compile := tsc
cmd_concatenate := cat cmd_concatenate := cat
cmd_chmod := chmod cmd_chmod := chmod
cmd_echo := echo -e cmd_echo := echo -e
cmd_echox := echo
cmd_log := echo -e "--" cmd_log := echo -e "--"
@ -29,7 +30,7 @@ source/main.ts
build/sindri: lib/plankton/plankton.js temp/sindri-unlinked.js build/sindri: lib/plankton/plankton.js temp/sindri-unlinked.js
@ ${cmd_log} "linking …" @ ${cmd_log} "linking …"
@ ${cmd_create_directory} build @ ${cmd_create_directory} build
@ ${cmd_echo} "#!/usr/bin/env node\n" > temp/head.js @ ${cmd_echox} "#!/usr/bin/env node\n" > temp/head.js
@ ${cmd_concatenate} temp/head.js $^ > $@ @ ${cmd_concatenate} temp/head.js $^ > $@
@ ${cmd_chmod} +x $@ @ ${cmd_chmod} +x $@