%.abixml : %.so
$(ABIDW) --headers-dir $(TOPDIR)/src/include/efivar/ --out-file $@ $^
+ @sed -i -s 's,$(TOPDIR)/,,g' $@
%.abicheck : %.so
$(ABIDIFF) \
abidw abicheck efivar efivar-static static:
$(MAKE) -C src $@
+abiupdate :
+ $(MAKE) clean all
+ $(MAKE) -C src abiclean abixml
+
$(SUBDIRS) :
$(MAKE) -C $@
exit 1 ; \
fi
-.PHONY: $(SUBDIRS) a brick
+.PHONY: $(SUBDIRS) a brick abiupdate
GITTAG = $(shell bash -c "echo $$(($(VERSION) + 1))")
static : $(STATICTARGETS)
+abiclean :
+ @rm -vf $(patsubst %.so,%.abixml,$@)
+
+abixml : | $(LIBTARGETS)
+abixml : $(patsubst %.so,%.abixml,$(LIBTARGETS))
+
abidw : $(patsubst %.so,%.abixml,$(LIBTARGETS))
git commit -s --amend $^
test : all
$(MAKE) -C test $@
-.PHONY: test deps
+.PHONY: test deps abiclean abixml
.SECONDARY : libefivar.so.1.$(VERSION) libefivar.so.1
.SECONDARY : libefiboot.so.1.$(VERSION) libefivar.so.1
.SECONDARY : include/efivar/efivar-guids.h guid-symbols.c