crda: Fix the keys-gcrypt.c target and remove key.priv.pem on clean
authorEvgeni Golov <sargentd@die-welt.net>
Mon, 20 Oct 2008 15:47:32 +0000 (17:47 +0200)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 20 Oct 2008 16:09:39 +0000 (09:09 -0700)
  * 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>
Makefile

index de74bd5..6d2faa6 100644 (file)
--- 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