-notmuch.sym: lib/notmuch.h
- gcc -aux-info notmuch.aux $<
- printf "{\nglobal:\n" > notmuch.sym
- sed -n 's/.*\(notmuch_[a-z_]*\) (.*/\t\1;/p' notmuch.aux >> notmuch.sym
- printf "local: *;\n};\n" >> notmuch.sym
+notmuch.sym: lib/notmuch.h $(libnotmuch_modules)
+ sh lib/gen-version-script.sh $< $(libnotmuch_modules) > $@