3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

build: Create state directories only when systemd support is disabled

This commit is contained in:
Marcel Holtmann 2019-09-08 19:58:59 +02:00
parent 71ae0bee9c
commit ad7412efb2

View File

@ -574,8 +574,6 @@ ell/ell.h: Makefile
SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
-e 's,@libexecdir\@,$(libexecdir),g' \
-e 's,@daemon_storagedir\@,$(daemon_storagedir),g' \
-e 's,@wired_storagedir\@,$(wired_storagedir),g' \
< $< > $@
%.service: %.service.in Makefile
@ -585,12 +583,14 @@ SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
$(AM_V_GEN)$(A2X) --doctype manpage --format manpage $(srcdir)/$<
install-data-local:
if !SYSTEMD_SERVICE
if DAEMON
$(MKDIR_P) -m 700 $(DESTDIR)$(daemon_storagedir)
endif
if WIRED
$(MKDIR_P) -m 700 $(DESTDIR)$(wired_storagedir)
endif
endif
clean-local:
-rm -f unit/cert-*.pem unit/cert-*.csr unit/cert-*.srl