git.schokokeks.org
Repositories
Help
Report an Issue
wirc-frontend.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
36016ac
Branches
Tags
master
wirc-frontend.git
tools
makefile
[ini]
Christian Fraß
commited
36016ac
at 2021-11-18 23:54:20
makefile
Blame
History
Raw
## directories dir_source := source dir_build := build ## commands cmd_log := echo "--" cmd_tsc := tsc --lib es2015,dom cmd_cp := cp cmd_lessc := lessc cmd_mkdir := mkdir -p ## rules all: structure logic style conf .PHONY: all structure: ${dir_build}/index.html .PHONY: structure ${dir_build}/index.html: ${dir_source}/index.html @ ${cmd_log} "structure …" @ ${cmd_mkdir} $(dir $@) @ ${cmd_cp} -ru $^ $@ logic: ${dir_build}/logic.js .PHONY: logic ${dir_build}/logic.js: ${dir_source}/logic.ts @ ${cmd_log} "logic …" @ ${cmd_mkdir} $(dir $@) @ ${cmd_tsc} $^ --outFile $@ style: ${dir_build}/style.css .PHONY: style ${dir_build}/style.css: ${dir_source}/style.less @ ${cmd_log} "style …" @ ${cmd_mkdir} $(dir $@) @ ${cmd_lessc} $^ > $@ conf: ${dir_build}/conf.json .PHONY: conf ${dir_build}/conf.json: ${dir_source}/conf.json @ ${cmd_log} "conf …" @ ${cmd_mkdir} $(dir $@) @ ${cmd_cp} -ru $^ $@