pluotsorbet/certs/Makefile

24 строки
809 B
Makefile
Исходник Обычный вид История

2014-08-29 00:36:41 +04:00
CERTS=$(wildcard *.der)
2014-10-22 23:13:19 +04:00
MEKEYTOOL ?= mekeytool
2014-08-29 00:36:41 +04:00
_main.ks: $(CERTS)
rm -f _main.ks j2se_main.ks
for file in $(CERTS) ; do \
echo $$file ; \
keytool -import -v -trustcacerts -alias $$file -file $$file -keystore j2se_main.ks -storepass javasdk ; \
2014-10-22 23:13:19 +04:00
$(MEKEYTOOL) -import -MEkeystore _main.ks -keystore j2se_main.ks -alias $$file -domain identified_third_party ; \
2014-08-29 00:36:41 +04:00
done
2014-10-22 23:13:19 +04:00
_test.ks: _main.ks ../tests/cert.der
rm -f _test.ks j2se_test.ks
cp _main.ks _test.ks
cp j2se_main.ks j2se_test.ks
keytool -import -v -trustcacerts -alias ../tests/cert.der -file ../tests/cert.der -keystore j2se_test.ks -storepass javasdk ; \
$(MEKEYTOOL) -import -MEkeystore _test.ks -keystore j2se_test.ks -alias ../tests/cert.der -domain identified_third_party ; \
2014-08-29 00:36:41 +04:00
clean:
2014-10-22 23:13:19 +04:00
rm -f _main.ks j2se_main.ks _test.ks j2se_test.ks