mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Makefile.am: Always include rule to make org.libvirt.api.policy
When running 'make dist' on a system without policykit, we currently fail. This is because $(srcdir)/access/org.libvirt.api.policy is in EXTRA_DIST, however, the rule to generate the file is conditional whether we build with polkit or not. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
4679e9422a
commit
ecbb3d51b5
@ -1519,6 +1519,10 @@ libvirt_driver_access_la_LIBADD =
|
||||
|
||||
EXTRA_DIST += access/genpolkit.pl
|
||||
|
||||
$(ACCESS_DRIVER_POLKIT_POLICY): $(srcdir)/access/viraccessperm.h \
|
||||
$(srcdir)/access/genpolkit.pl Makefile.am
|
||||
$(AM_V_GEN)$(PERL) $(srcdir)/access/genpolkit.pl < $< > $@ || rm -f $@
|
||||
|
||||
if WITH_POLKIT1
|
||||
libvirt_driver_access_la_SOURCES += $(ACCESS_DRIVER_POLKIT_SOURCES)
|
||||
|
||||
@ -1527,10 +1531,6 @@ if WITH_LIBVIRTD
|
||||
polkitaction_DATA = $(ACCESS_DRIVER_POLKIT_POLICY)
|
||||
endif WITH_LIBVIRTD
|
||||
|
||||
$(ACCESS_DRIVER_POLKIT_POLICY): $(srcdir)/access/viraccessperm.h \
|
||||
$(srcdir)/access/genpolkit.pl Makefile.am
|
||||
$(AM_V_GEN)$(PERL) $(srcdir)/access/genpolkit.pl < $< > $@ || rm -f $@
|
||||
|
||||
CLEANFILES += $(ACCESS_DRIVER_POLKIT_POLICY)
|
||||
BUILT_SOURCES += $(ACCESS_DRIVER_POLKIT_POLICY)
|
||||
else ! WITH_POLKIT1
|
||||
|
Loading…
x
Reference in New Issue
Block a user