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:
parent
8e459d919d
commit
f79e9c2d22
4 changed files with 18 additions and 8 deletions
13
Makefile.am
13
Makefile.am
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue