]> git.notmuchmail.org Git - notmuch/blobdiff - lib/Makefile.local
Merge commit '0.6.1'
[notmuch] / lib / Makefile.local
index 88d8debca8e19600cf86cded2ae27cf77ea93e84..9210f0e543f814392f3038777b76a948c5cfe2a5 100644 (file)
@@ -75,9 +75,7 @@ $(dir)/$(LIBNAME): $(libnotmuch_modules) notmuch.sym
        $(call quiet,CXX $(CXXFLAGS)) $(libnotmuch_modules) $(FINAL_LIBNOTMUCH_LDFLAGS) $(LIBRARY_LINK_FLAG) -o $@
 
 notmuch.sym: lib/notmuch.h
-       printf "{\nglobal:\n" > notmuch.sym
-       sed  -n 's/^[[:space:]]*\(notmuch_[a-z_]*\)[[:space:]]*(.*/'"`printf "\t"`"'\1;/p' $< >> notmuch.sym
-       printf "local: *;\n};\n" >> notmuch.sym
+       sh lib/gen-version-script.sh $< $(libnotmuch_modules) > $@
 
 $(dir)/$(SONAME): $(dir)/$(LIBNAME)
        ln -sf $(LIBNAME) $@