2008-08-22 19:38:58 UTC
You get something like this for autoconf output:
install: all install_someproject
(cd $(srcdir) ; $(INSTALL_DATA) lib/*.h \
(cd $(DESTDIR)$(prefix)/include/some_subdir ; rm -f *.h)
Notice that it doesn't remove the directory it created.
I tried this to fix it:
but that gets inserted before the Bakefile-generated commands, which
means it can't work because the header files are still there. And, I
can't just rm -r $(HEADER_DIR), because that makes Bakefile's cd-and-rm
Obviously one fix is to make uninstall symmetric with regard to install.
Another, which would make Bakefile more flexible, is to add an
attribute (when="after"?) to <modify-target> that would override the
default of inserting the custom commands before the Bakefile ones.