1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 04:43:53 +02:00

* Do initialise state (the DB etc.) when doing a `make install',

unless `--disable-init-state' is passed to configure.
This commit is contained in:
Eelco Dolstra 2004-04-21 10:54:46 +00:00
parent 8e459d919d
commit f79e9c2d22
4 changed files with 18 additions and 8 deletions

View file

@ -10,3 +10,16 @@ rpm: nix.spec dist
relname:
echo -n $(distdir) > relname
install-data-local: init-state
if INIT_STATE
init-state:
$(INSTALL) -d $(DESTDIR)$(localstatedir)/nix
$(INSTALL) -d $(DESTDIR)$(localstatedir)/nix/db
$(INSTALL) -d $(DESTDIR)$(localstatedir)/log/nix
$(INSTALL) -d $(DESTDIR)$(prefix)/store
# $(bindir)/nix-store --init
else
init-state:
endif