2024-02-06 10:18:43 +00:00
|
|
|
ALL += build/web/index.html build/web/cert.pem build/web/key.pem
|
2024-01-18 17:13:31 +00:00
|
|
|
|
2024-02-06 10:18:43 +00:00
|
|
|
build/web/index.html: ${DATA_DIR}/src/index.html | build
|
2024-01-18 17:13:31 +00:00
|
|
|
cp $^ $@
|
2024-01-20 06:06:21 +00:00
|
|
|
|
2024-02-06 10:18:43 +00:00
|
|
|
build/web/key.pem: build/web/cert.pem
|
2024-01-20 06:06:21 +00:00
|
|
|
|
2024-02-06 10:18:43 +00:00
|
|
|
build/web/cert.pem: | build
|
|
|
|
yes "" | openssl req -x509 -newkey rsa:2048 -keyout build/web/key.pem -out build/web/cert.pem -days 365 -nodes 2>/dev/null
|