summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-09 23:55:05 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-23 21:47:27 -0400
commit94e75a54097b32252ef86e9253a288db7529f1ea (patch)
treecddc53ebc24428981faa4df1c395621846bee80c /src
parent2d9f0c68780b5ea6be92fa247a61688b1e73d28d (diff)
meson: create dirs and touch /usr
This is the equivalent of $(INSTALL_DIRS) and install-touch-usr-hook. I did not bother to create the directories into which we install files, since they will be created anyway. v2: - remove bashism
Diffstat (limited to 'src')
-rw-r--r--src/core/meson.build14
-rw-r--r--src/kernel-install/meson.build3
-rw-r--r--src/udev/meson.build3
3 files changed, 20 insertions, 0 deletions
diff --git a/src/core/meson.build b/src/core/meson.build
index f6d3e7fb00..bf4e2dbed9 100644
--- a/src/core/meson.build
+++ b/src/core/meson.build
@@ -220,3 +220,17 @@ custom_target(
install_data('system.conf',
'user.conf',
install_dir : pkgsysconfdir)
+
+meson.add_install_script('sh', '-c', mkdir_p.format(systemshutdowndir))
+meson.add_install_script('sh', '-c', mkdir_p.format(systemsleepdir))
+meson.add_install_script('sh', '-c', mkdir_p.format(systemgeneratordir))
+meson.add_install_script('sh', '-c', mkdir_p.format(usergeneratordir))
+
+meson.add_install_script('sh', '-c',
+ mkdir_p.format(pkgsysconfdir + '/system/multi-user.target.wants'))
+meson.add_install_script('sh', '-c',
+ mkdir_p.format(pkgsysconfdir + '/system/getty.target.wants'))
+meson.add_install_script('sh', '-c',
+ mkdir_p.format(pkgsysconfdir + '/user'))
+meson.add_install_script('sh', '-c',
+ mkdir_p.format(sysconfdir + '/xdg/systemd'))
diff --git a/src/kernel-install/meson.build b/src/kernel-install/meson.build
index 517cd69c0e..4ecea20f89 100644
--- a/src/kernel-install/meson.build
+++ b/src/kernel-install/meson.build
@@ -8,3 +8,6 @@ install_data('50-depmod.install',
'90-loaderentry.install',
install_mode : 'rwxr-xr-x',
install_dir : kernelinstalldir)
+
+meson.add_install_script('sh', '-c',
+ mkdir_p.format(sysconfdir + '/kernel/install.d'))
diff --git a/src/udev/meson.build b/src/udev/meson.build
index 6edec7dabc..f3c68a9d45 100644
--- a/src/udev/meson.build
+++ b/src/udev/meson.build
@@ -163,3 +163,6 @@ udev_pc = configure_file(
configuration : substs)
install_data(udev_pc,
install_dir : pkgconfigdatadir)
+
+meson.add_install_script('sh', '-c',
+ mkdir_p.format(sysconfdir + '/udev/rules.d'))