mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 16:40:13 +01:00
build: create base directories for install-data-hook first
The dependencies of make are exectured in the order as they appear. We probably should start by creating the directories, before invoking other install hooks. Currently there is no difference, because none of the other hooks depend on the base directories. Still split it to a special target.
This commit is contained in:
parent
d1eb52f8ce
commit
18c5ce50fb
1 changed files with 15 additions and 9 deletions
24
Makefile.am
24
Makefile.am
|
|
@ -159,6 +159,21 @@ DISTCLEANFILES += intltool-extract intltool-merge intltool-update
|
|||
|
||||
###############################################################################
|
||||
|
||||
install-data-hook-dirs:
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/conf.d
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/system-connections
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/dnsmasq.d
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/dnsmasq-shared.d
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(nmlibdir)/conf.d
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(nmlibdir)/VPN
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(nmlibdir)/system-connections
|
||||
$(mkinstalldirs) -m 0700 $(DESTDIR)$(nmstatedir)
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(plugindir)
|
||||
|
||||
install_data_hook += install-data-hook-dirs
|
||||
|
||||
###############################################################################
|
||||
|
||||
data_edit = sed \
|
||||
-e 's|@NM_VERSION[@]|$(NM_VERSION)|g' \
|
||||
-e 's|@bindir[@]|$(bindir)|g' \
|
||||
|
|
@ -4958,15 +4973,6 @@ dist-hook: $(dist_hook)
|
|||
install-exec-hook: $(install_exec_hook)
|
||||
|
||||
install-data-hook: $(install_data_hook)
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/conf.d
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/system-connections
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/dnsmasq.d
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(nmconfdir)/dnsmasq-shared.d
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(nmlibdir)/conf.d
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(nmlibdir)/VPN
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(nmlibdir)/system-connections
|
||||
$(mkinstalldirs) -m 0700 $(DESTDIR)$(nmstatedir)
|
||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(plugindir)
|
||||
|
||||
uninstall-hook: $(uninstall_hook)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue