Don't special-case bulid of mount_util.c.
authorNikolaus Rath <Nikolaus@rath.org>
Mon, 17 Sep 2018 09:35:50 +0000 (10:35 +0100)
committerNikolaus Rath <Nikolaus@rath.org>
Mon, 17 Sep 2018 09:35:50 +0000 (10:35 +0100)
We already support out of source builds without this.

util/meson.build

index 01f7678a754b2b15656f5c5fce7d2e3eb7ceca7f..674fd779794495b5c8a37168bc0e932360184913 100644 (file)
@@ -1,16 +1,6 @@
-# we re-use mount_util.c from the library, but do want to keep ourself
-# as stand-alone as possible. in order to make an out-of-source build
-# possible, we "generate" the file from its original location by
-# copying it over.
-mount_util_c = custom_target('mount_util',
-  input : '../lib/mount_util.c',
-  output : 'mount_util.c',
-  command : ['cp', '-a', '@INPUT@', '@OUTPUT@'],
-)
-
 fuseconf_path = join_paths(get_option('prefix'), get_option('sysconfdir'), 'fuse.conf')
 
-executable('fusermount3', ['fusermount.c', mount_util_c],
+executable('fusermount3', ['fusermount.c', '../lib/mount_util.c'],
            include_directories: include_dirs,
            install: true,
            install_dir: get_option('bindir'),