Skip to content

Commit

Permalink
Fix make install for 'include/mint'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrosk committed Jun 8, 2024
1 parent 7a35a3d commit 27004bb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
11 changes: 10 additions & 1 deletion include/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -19,11 +25,14 @@ 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; \
done; \
fi



10 changes: 10 additions & 0 deletions include/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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; \
Expand Down

0 comments on commit 27004bb

Please sign in to comment.