parser: fix flag dict name
[platform/upstream/crda.git] / Makefile
index 1f217db..876bbde 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,10 @@
-all:   regulatory.bin verify
+all:   regulatory.bin
 
-
-regulatory.bin:        regulatory.sqlite dbgen.py key.priv.pem
-       @./dbgen.py
+regulatory.bin:        db2bin.py key.priv.pem db.txt dbparse.py
+       @./db2bin.py
 
 clean:
-       @rm -f regulatory.sqlite regulatory.bin *~
-
-regulatory.sqlite: db/*.sql
-       @rm -f requlatory.sqlite
-       @for i in db/*.sql ; do \
-               if [ $$i = "db/00-database.sql" ] ; then continue ; fi ;\
-               sed 's/AUTO_INCREMENT/AUTOINCREMENT/; s/use regulatory;//' < $$i | sqlite3 regulatory.sqlite ;\
-       done
-
-verify:        regulatory.sqlite verify.sh key.pub.pem
-       @./verify.sh
+       @rm -f regulatory.bin *~ *.pyc
 
 generate_keys:
        openssl genrsa -out key.priv.pem 2048
-       openssl rsa -in key.priv.pem -pubout -out key.pub.pem