1
0
Fork 0
cloudservices/Makefile

32 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

2020-03-13 20:12:23 -04:00
# 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)
2020-05-22 21:56:56 -04:00
get_user_by_uid_files := $(wildcard src/go/getUserByUid/*.go)
2020-03-13 20:12:23 -04:00
2020-05-22 21:56:56 -04:00
all: check_certificate check_cert_signatures storage getUserByUid typescript
2020-03-13 20:12:23 -04:00
check_certificate:
2020-03-13 20:12:23 -04:00
HOME=/root go build -ldflags="-s -w" -o dist/bin/checkCertificate ${check_certificate_files}
@chmod 740 dist/bin/checkCertificate
2020-11-07 04:45:49 -05:00
@file dist/bin/checkCertificate
2020-03-13 20:12:23 -04:00
check_cert_signatures:
HOME=/root go build -ldflags="-s -w" -o dist/bin/checkCertSignatures ${check_certificate_signatures_files}
@chmod 740 dist/bin/checkCertSignatures
2020-11-07 04:45:49 -05:00
@file dist/bin/checkCertSignatures
2020-03-13 20:12:23 -04:00
storage:
2020-07-07 21:15:10 -04:00
HOME=/root go build -ldflags="-s -w" -buildmode=pie -o dist/bin/storage ${storage_files}
2020-03-13 20:12:23 -04:00
@chmod 740 dist/bin/storage
2020-11-07 04:45:49 -05:00
@file dist/bin/storage
2020-03-13 20:12:23 -04:00
2020-05-22 21:56:56 -04:00
getUserByUid:
2020-05-22 22:01:01 -04:00
HOME=/root go build -ldflags="-s -w" -o dist/bin/getUserByUid ${get_user_by_uid_files}
2020-05-22 21:56:56 -04:00
@chmod 740 dist/bin/getUserByUid
2020-11-07 04:45:49 -05:00
@file dist/bin/getUserByUid
2020-05-22 21:56:56 -04:00
2020-03-13 20:12:23 -04:00
typescript:
tsc -p ./tsconfig.json