forked from engineering/cloudservices
32 lines
1.1 KiB
Makefile
32 lines
1.1 KiB
Makefile
# Builds TypeScript & Go
|
|
|
|
check_certificate_files := $(wildcard src/go/checkCertificate/*.go)
|
|
check_certificate_signatures_files := $(wildcard src/go/checkCertSignatures/*.go)
|
|
storage_files := $(wildcard src/go/storage/*.go)
|
|
get_user_by_uid_files := $(wildcard src/go/getUserByUid/*.go)
|
|
|
|
all: check_certificate check_cert_signatures storage getUserByUid typescript
|
|
|
|
check_certificate:
|
|
HOME=/root go build -ldflags="-s -w" -o dist/bin/checkCertificate ${check_certificate_files}
|
|
@chmod 740 dist/bin/checkCertificate
|
|
@file dist/bin/checkCertificate
|
|
|
|
check_cert_signatures:
|
|
HOME=/root go build -ldflags="-s -w" -o dist/bin/checkCertSignatures ${check_certificate_signatures_files}
|
|
@chmod 740 dist/bin/checkCertSignatures
|
|
@file dist/bin/checkCertSignatures
|
|
|
|
storage:
|
|
HOME=/root go build -ldflags="-s -w" -buildmode=pie -o dist/bin/storage ${storage_files}
|
|
@chmod 740 dist/bin/storage
|
|
@file dist/bin/storage
|
|
|
|
getUserByUid:
|
|
HOME=/root go build -ldflags="-s -w" -o dist/bin/getUserByUid ${get_user_by_uid_files}
|
|
@chmod 740 dist/bin/getUserByUid
|
|
@file dist/bin/getUserByUid
|
|
|
|
typescript:
|
|
tsc -p ./tsconfig.json
|