diff --git a/include/Makefile.am b/include/Makefile.am index 91121eb..40790b0 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -10,6 +10,12 @@ include_HEADERS = a.out.h stab.h stab.def install-data-local: @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(includedir) + for p in $(include_HEADERS); do \ + if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \ + echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \ + $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \ + done if test x$(DESTDIR)$(nativeincludedir) != x$(DESTDIR); then \ $(mkinstalldirs) $(DESTDIR)$(nativeincludedir) || exit 1; \ for header in $(include_HEADERS); do \ @@ -19,6 +25,10 @@ install-data-local: fi uninstall-local: + @$(NORMAL_UNINSTALL) + for p in $(include_HEADERS); do \ + rm -f $(DESTDIR)$(includedir)/$$p; \ + done if test x$(nativeincludedir) != x$(DESTDIR); then \ for header in $(include_HEADERS); do \ rm -f $(DESTDIR)$(nativeincludedir)/$$header; \ @@ -26,4 +36,3 @@ uninstall-local: fi - diff --git a/include/Makefile.in b/include/Makefile.in index d33cce6..2510fb6 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -675,6 +675,12 @@ uninstall-am: uninstall-includeHEADERS uninstall-local install-data-local: @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(includedir) + for p in $(include_HEADERS); do \ + if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \ + echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \ + $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \ + done if test x$(DESTDIR)$(nativeincludedir) != x$(DESTDIR); then \ $(mkinstalldirs) $(DESTDIR)$(nativeincludedir) || exit 1; \ for header in $(include_HEADERS); do \ @@ -684,6 +690,10 @@ install-data-local: fi uninstall-local: + @$(NORMAL_UNINSTALL) + for p in $(include_HEADERS); do \ + rm -f $(DESTDIR)$(includedir)/$$p; \ + done if test x$(nativeincludedir) != x$(DESTDIR); then \ for header in $(include_HEADERS); do \ rm -f $(DESTDIR)$(nativeincludedir)/$$header; \