$OpenBSD: patch-erts-47_4_0_lib_compiler-1_2_1_src_Makefile,v 1.1 2001/10/14 17:24:13 espie Exp $
--- erts-47.4.0/lib/compiler-1.2.1/src/Makefile.orig	Tue Dec  8 17:13:30 1998
+++ erts-47.4.0/lib/compiler-1.2.1/src/Makefile	Sun Oct 14 18:35:16 2001
@@ -97,17 +97,17 @@ include $(CC_ROOT)/internal_tools/make/o
 # Note: Source for the compiler should not be released.
 
 release_spec:
-	$(INSTALL_DIR) $(RELSYSDIR)/ebin
-	$(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)/ebin
+	$(INSTALL_DIR) $(DESTDIR)$(RELSYSDIR)/ebin
+	$(INSTALL_DATA) $(TARGET_FILES) $(DESTDIR)$(RELSYSDIR)/ebin
 
 release_src_spec: opt
-	$(INSTALL_DIR) $(RELSYSDIR)/ebin
-	$(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)/ebin
-	$(INSTALL_DIR) $(RELSYSDIR)/src
-	$(INSTALL_DATA) $(ERL_FILES) $(RELSYSDIR)/src
+	$(INSTALL_DIR) $(DESTDIR)$(RELSYSDIR)/ebin
+	$(INSTALL_DATA) $(TARGET_FILES) $(DESTDIR)$(RELSYSDIR)/ebin
+	$(INSTALL_DIR) $(DESTDIR)$(RELSYSDIR)/src
+	$(INSTALL_DATA) $(ERL_FILES) $(DESTDIR)$(RELSYSDIR)/src
 	sed 's/^\(release_spec:\).*/\1/' Makefile > Makefile.dist
-	$(INSTALL_DATA) Makefile.dist $(RELSYSDIR)/src/Makefile
-	$(INSTALL_DATA) $(APP_SRC) beam_opcodes.hrl $(RELSYSDIR)/src
-	$(INSTALL_DATA) ../Makefile ../vsn.mk $(RELSYSDIR)
+	$(INSTALL_DATA) Makefile.dist $(DESTDIR)$(RELSYSDIR)/src/Makefile
+	$(INSTALL_DATA) $(APP_SRC) beam_opcodes.hrl $(DESTDIR)$(RELSYSDIR)/src
+	$(INSTALL_DATA) ../Makefile ../vsn.mk $(DESTDIR)$(RELSYSDIR)
 
 release_docs_spec:
