* use $(wildcard *.pem) in the keys-gcrypt.c target
* remove key.priv.pem if it's the test-key in the
clean target
Signed-off-by: Evgeni Golov <sargentd@die-welt.net>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
clean:
@rm -f regulatory.bin dump *~ *.pyc keys-*.c crda
+ @if test -f key.priv.pem && diff -qNs test-key key.priv.pem >/dev/null ; then \
+ rm -f key.priv.pem;\
+ fi
warn:
@if test ! -f key.priv.pem || diff -qNs test-key key.priv.pem >/dev/null ; then \
keys-ssl.c: key2pub.py $(wildcard *.pem)
@./key2pub.py --ssl *.pem > keys-ssl.c
-keys-gcrypt.c: key2pub.py *.pem
+keys-gcrypt.c: key2pub.py $(wildcard *.pem)
@./key2pub.py --gcrypt *.pem > keys-gcrypt.c
verify: dump