git.schokokeks.org
Repositories
Help
Report an Issue
wirc-backend.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
c972b0c
Branches
Tags
master
wirc-backend.git
tools
makefile
[ini]
Christian Fraß
commited
c972b0c
at 2021-11-18 23:53:54
makefile
Blame
History
Raw
## consts dir_lib := lib dir_source := source dir_temp := temp dir_build := build ## commands cmd_log := echo "--" cmd_mkdir := mkdir -p cmd_cp := cp cmd_cat := cat cmd_tsc := tsc --lib es2017 cmd_chmod := chmod ## rules all: node_modules ${dir_build}/irc-web-backend .PHONY: all node_modules: @ ${cmd_log} "copying node modules …" @ ${cmd_mkdir} ${dir_build}/node_modules @ ${cmd_cp} -ru ${dir_lib}/node/node_modules/* ${dir_build}/node_modules/ .PHONY: node_modules ${dir_build}/irc-web-backend: ${dir_temp}/head.js ${dir_lib}/plankton/plankton.js ${dir_temp}/irc-web-backend-unlinked.ts @ ${cmd_log} "linking …" @ ${cmd_mkdir} $(dir $@) @ ${cmd_cat} $^ > $@ @ ${cmd_chmod} +x $@ ${dir_temp}/head.js: @ echo "#!/usr/bin/env node" > $@ ${dir_temp}/irc-web-backend-unlinked.ts: ${dir_lib}/plankton/plankton.d.ts ${dir_source}/main.ts @ ${cmd_log} "building …" @ ${cmd_mkdir} $(dir $@) @ ${cmd_tsc} $^ --outFile $@