parser: fix flag dict name
[platform/upstream/crda.git] / Makefile
index 275df04..876bbde 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,10 @@
+all:   regulatory.bin
 
+regulatory.bin:        db2bin.py key.priv.pem db.txt dbparse.py
+       @./db2bin.py
 
-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
+clean:
+       @rm -f regulatory.bin *~ *.pyc
+
+generate_keys:
+       openssl genrsa -out key.priv.pem 2048