build: Create the storage directory at install time

Otherwise you could get into a state where the daemon could not start
because the directory listed as a ReadWritePaths in the .service file is
missing.

Spotted by Will Thompson.

See: !5
This commit is contained in:
Bastien Nocera
2019-03-04 17:06:58 +01:00
parent dbeeb95756
commit dd9d7cc35d

View File

@ -50,3 +50,7 @@ fprintd-marshal.h: fprintd-marshal.list
fprintd-marshal.c: fprintd-marshal.h fprintd-marshal.c: fprintd-marshal.h
( $(GLIB_GENMARSHAL) --prefix=fprintd_marshal $(srcdir)/fprintd-marshal.list --body --header > fprintd-marshal.c ) ( $(GLIB_GENMARSHAL) --prefix=fprintd_marshal $(srcdir)/fprintd-marshal.list --body --header > fprintd-marshal.c )
install-data-hook:
if test -w $(DESTDIR)$(prefix)/; then \
mkdir -p $(DESTDIR)$(localstatedir)/lib/fprint; \
fi