From e9eb486fae220903f039ffae5125894c1e156aa4 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sat, 12 Sep 2015 18:12:05 -0400 Subject: Move YAML parsing to external script so py11 doesn't have to worry about finding attributes.yaml at runtime. --- GNUmakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'GNUmakefile') 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 $< -- cgit v1.2.3