about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libmain/Makefile.am2
-rw-r--r--src/nix-store/Makefile.am2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libmain/Makefile.am b/src/libmain/Makefile.am
index 6d70b0406acc..72126f1135c4 100644
--- a/src/libmain/Makefile.am
+++ b/src/libmain/Makefile.am
@@ -3,7 +3,7 @@ noinst_LIBRARIES = libmain.a
 libmain_a_SOURCES = shared.cc shared.hh
 
 AM_CXXFLAGS = \
- -DNIX_STORE_DIR=\"$(prefix)/store\" \
+ -DNIX_STORE_DIR=\"$(storedir)\" \
  -DNIX_DATA_DIR=\"$(datadir)\" \
  -DNIX_STATE_DIR=\"$(localstatedir)/nix\" \
  -DNIX_LOG_DIR=\"$(localstatedir)/log/nix\" \
diff --git a/src/nix-store/Makefile.am b/src/nix-store/Makefile.am
index 3a152e3e4b3d..76d3a6c6bedc 100644
--- a/src/nix-store/Makefile.am
+++ b/src/nix-store/Makefile.am
@@ -12,7 +12,7 @@ main.o: help.txt.hh
 AM_CXXFLAGS = \
  -I.. -I../../externals/inst/include -I../libutil -I../libstore -I../libmain
 
-install-data-local:
+init-state-local:
 	$(INSTALL) -d $(DESTDIR)$(localstatedir)/nix
 	$(INSTALL) -d $(DESTDIR)$(localstatedir)/nix/db
 	$(INSTALL) -d $(DESTDIR)$(localstatedir)/log/nix