aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-09-12 18:12:05 -0400
committerRob Austein <sra@hactrn.net>2015-09-12 18:12:05 -0400
commite9eb486fae220903f039ffae5125894c1e156aa4 (patch)
tree8b866f5bd0cc7342fcbb406af604967113db2058 /GNUmakefile
parentd4dd9a8becf0c8f28479f0e48cc7f6708f786ee4 (diff)
Move YAML parsing to external script so py11 doesn't have to worry
about finding attributes.yaml at runtime.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index aa95233..4f8193e 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -53,7 +53,7 @@ ifndef OBJCOPY
OBJCOPY := objcopy
endif
-all: libpkcs11.so p11util
+all: libpkcs11.so p11util py11/attribute_map.py
clean:
rm -rf pkcs11.o pkcs11.so libpkcs11.so* p11util p11util.o schema.h attributes.h
@@ -67,6 +67,9 @@ schema.h: schema.sql scripts/convert-schema.sed GNUmakefile
attributes.h: attributes.yaml scripts/build-attributes GNUmakefile
python scripts/build-attributes attributes.yaml attributes.h
+py11/attribute_map.py: attributes.yaml scripts/build-py11-attributes GNUmakefile
+ python scripts/build-py11-attributes attributes.yaml py11/attribute_map.py
+
pkcs11.o: pkcs11.c sql_common.h schema.h attributes.h
${CC} ${CFLAGS} -c $<