about summary refs log tree commit diff
path: root/corepkgs/buildenv
diff options
context:
space:
mode:
Diffstat (limited to 'corepkgs/buildenv')
-rw-r--r--corepkgs/buildenv/Makefile.am8
1 files changed, 4 insertions, 4 deletions
diff --git a/corepkgs/buildenv/Makefile.am b/corepkgs/buildenv/Makefile.am
index 74c39199f689..f6a14600f3c4 100644
--- a/corepkgs/buildenv/Makefile.am
+++ b/corepkgs/buildenv/Makefile.am
@@ -1,8 +1,8 @@
 install-exec-local:
-	$(INSTALL) -d $(datadir)/nix/corepkgs
-	$(INSTALL) -d $(datadir)/nix/corepkgs/buildenv
-	$(INSTALL_DATA) default.nix $(datadir)/nix/corepkgs/buildenv
-	$(INSTALL_PROGRAM) builder.pl $(datadir)/nix/corepkgs/buildenv
+	$(INSTALL) -d $(DESTDIR)$(datadir)/nix/corepkgs
+	$(INSTALL) -d $(DESTDIR)$(datadir)/nix/corepkgs/buildenv
+	$(INSTALL_DATA) default.nix $(DESTDIR)$(datadir)/nix/corepkgs/buildenv
+	$(INSTALL_PROGRAM) builder.pl $(DESTDIR)$(datadir)/nix/corepkgs/buildenv
 
 include ../../substitute.mk