$OpenBSD: patch-erts-47_4_0_lib_stdlib-1_5_2_src_Makefile,v 1.1 2001/10/14 17:24:13 espie Exp $
--- erts-47.4.0/lib/stdlib-1.5.2/src/Makefile.orig	Sun Oct 14 18:28:18 2001
+++ erts-47.4.0/lib/stdlib-1.5.2/src/Makefile	Sun Oct 14 18:28:38 2001
@@ -87,18 +87,18 @@ $(APP_TARGET): $(APP_SRC)
 include $(CC_ROOT)/internal_tools/make/otp_release_targets.mk
 
 release_spec:
-	$(INSTALL_DIR) $(RELSYSDIR)/src
-	$(INSTALL_DATA) $(ERL_FILES) $(RELSYSDIR)/src
-	$(INSTALL_DIR) $(RELSYSDIR)/include
-	$(INSTALL_DATA) $(HRL_FILES) $(RELSYSDIR)/include
-	$(INSTALL_DIR) $(RELSYSDIR)/ebin
-	$(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)/ebin
+	$(INSTALL_DIR) $(DESTDIR)$(RELSYSDIR)/src
+	$(INSTALL_DATA) $(ERL_FILES) $(DESTDIR)$(RELSYSDIR)/src
+	$(INSTALL_DIR) $(DESTDIR)$(RELSYSDIR)/include
+	$(INSTALL_DATA) $(HRL_FILES) $(DESTDIR)$(RELSYSDIR)/include
+	$(INSTALL_DIR) $(DESTDIR)$(RELSYSDIR)/ebin
+	$(INSTALL_DATA) $(TARGET_FILES) $(DESTDIR)$(RELSYSDIR)/ebin
 
 release_src_spec: release_spec
 	sed 's/^\(release_spec:\).*/\1/' Makefile > Makefile.dist
-	$(INSTALL_DATA) Makefile.dist $(RELSYSDIR)/src/Makefile
-	$(INSTALL_DATA) $(APP_SRC) erl_internal.src $(RELSYSDIR)/src
-	$(INSTALL_DATA) ../Makefile ../vsn.mk $(RELSYSDIR)
+	$(INSTALL_DATA) Makefile.dist $(DESTDIR)$(RELSYSDIR)/src/Makefile
+	$(INSTALL_DATA) $(APP_SRC) erl_internal.src $(DESTDIR)$(RELSYSDIR)/src
+	$(INSTALL_DATA) ../Makefile ../vsn.mk $(DESTDIR)$(RELSYSDIR)
 
 release_docs_spec:
 
