summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-10 15:28:31 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-10 15:36:56 -0800
commit3cf266086c36169b019973c71d9752bae6445222 (patch)
treec38dea4e13a0c66fd575f9fd5779ee6a157a0a11
parent86e14513f1246b12525909f01a78b99901b33435 (diff)
meson: simplify installation of empty *.def files
Suggested-by: Emmanuele Bassi <ebassi@gnome.org> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--Makefile.am2
-rw-r--r--empty.def0
-rw-r--r--meson.build11
3 files changed, 4 insertions, 9 deletions
diff --git a/Makefile.am b/Makefile.am
index bad3cc5..fec6211 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -161,4 +161,4 @@ ChangeLog:
dist-hook: ChangeLog INSTALL
# Optional meson build files
-EXTRA_DIST += meson.build meson_options.txt
+EXTRA_DIST += meson.build meson_options.txt empty.def
diff --git a/empty.def b/empty.def
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/empty.def
diff --git a/meson.build b/meson.build
index d663fa0..ceed2ec 100644
--- a/meson.build
+++ b/meson.build
@@ -188,11 +188,6 @@ data_files = [ rule_files, tmpl_files, def_files, cf_files ]
install_data(data_files, install_dir: xconfdir)
-touch = find_program('touch')
-
-host_def = custom_target(output: 'host.def', command: [touch, '@OUTPUT@'],
- install: true, install_dir: xconfdir)
-date_def = custom_target(output: 'date.def', command: [touch, '@OUTPUT@'],
- install: true, install_dir: xconfdir)
-vers_def = custom_target(output: 'version.def', command: [touch, '@OUTPUT@'],
- install: true, install_dir: xconfdir)
+foreach target_def: ['date.def', 'host.def', 'version.def']
+ install_data('empty.def', rename: target_def, install_dir: xconfdir)
+endforeach