summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeni Golov <sargentd@die-welt.net>2008-10-20 17:47:32 +0200
committerLuis R. Rodriguez <lrodriguez@atheros.com>2008-10-20 09:09:39 -0700
commit8cae7f5428b4ce58a3623fed8b0ae3bca77c6d91 (patch)
tree2c2126f9a9fe8720d42824a514065b5254d3a426
parent1c59f614e16b67e1e2df9b2d60be51095ccf7c90 (diff)
downloadcrda-8cae7f5428b4ce58a3623fed8b0ae3bca77c6d91.tar.gz
crda-8cae7f5428b4ce58a3623fed8b0ae3bca77c6d91.tar.bz2
crda-8cae7f5428b4ce58a3623fed8b0ae3bca77c6d91.zip
crda: Fix the keys-gcrypt.c target and remove key.priv.pem on clean
* 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>
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index de74bd5..6d2faa6 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,9 @@ crda: keys-gcrypt.c keys-ssl.c crda.c regdb.h
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 \
@@ -49,7 +52,7 @@ dump: dump.c regdb.h keys-ssl.c keys-gcrypt.c
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