## directories dir_source := source dir_build := build dir_lib := lib ## commands cmd_dir_make := mkdir --parents cmd_copy := cp --recursive --update --verbose cmd_tsc := tsc --lib es2015,dom --target es6 cmd_remove := rm --force cmd_link := ln --symbolic ## rules all: ${dir_build}/sql ${dir_build}/manage .PHONY: all ${dir_build}/sql: @ ${cmd_dir_make} ${dir_build}/sql @ ${cmd_copy} ${dir_source}/sql/* ${dir_build}/sql/ .PHONY: ${dir_build}/sql ${dir_build}/manage: \ ${dir_source}/types.ts \ ${dir_source}/helpers/string.ts \ ${dir_source}/helpers/file.ts \ ${dir_source}/helpers/database.ts \ ${dir_source}/helpers/misc.ts \ ${dir_source}/helpers/module.ts \ ${dir_source}/helpers/storage.ts \ ${dir_source}/helpers/repository.ts \ ${dir_source}/entities/concept.ts \ ${dir_source}/repositories/language.ts \ ${dir_source}/repositories/type.ts \ ${dir_source}/repositories/tag.ts \ ${dir_source}/repositories/expression.ts \ ${dir_source}/repositories/concept.ts \ ${dir_source}/services/language.ts \ ${dir_source}/services/type.ts \ ${dir_source}/services/tag.ts \ ${dir_source}/services/expression.ts \ ${dir_source}/services/concept.ts \ ${dir_source}/main.ts @ ${cmd_dir_make} ${dir_build} @ ${cmd_tsc} $^ --outFile $@ @ chmod +x ${dir_build}/manage