summarylogtreecommitdiffstats
path: root/0001-do-not-build-in-installing.diff
blob: 09218c3edcbb81b1be3d16c7f810b956965cad5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
diff --git a/credentialsd-ui/src/meson.build b/credentialsd-ui/src/meson.build
index f6a0a44..5392ccf 100644
--- a/credentialsd-ui/src/meson.build
+++ b/credentialsd-ui/src/meson.build
@@ -43,23 +43,19 @@ cargo_env = ['CARGO_HOME=' + cargo_home]
 custom_target(
   'credentialsd-ui',
   build_by_default: true,
-  build_always_stale: true,
   output: gui_executable_name,
   console: true,
   install: true,
   install_dir: bindir,
   depends: resources,
   command: [
-    'rm',
-    '-f', '@OUTPUT@',
-    '&&',
     'env',
     cargo_env,
     cargo,
     'build',
     cargo_options,
     '&&',
-    'ln',
+    'ln', '-f',
     cargo_target_dir / rust_profile / gui_executable_name,
     '@OUTPUT@',
   ],
diff --git a/credentialsd/src/meson.build b/credentialsd/src/meson.build
index 374d0ef..c6c9254 100644
--- a/credentialsd/src/meson.build
+++ b/credentialsd/src/meson.build
@@ -13,22 +13,18 @@ message('@0@'.format(cargo_options))
 custom_target(
   'credentialsd',
   build_by_default: true,
-  build_always_stale: true,
   output: backend_executable_name,
   console: true,
   install: true,
   install_dir: bindir,
   command: [
-    'rm',
-    '-f', '@OUTPUT@',
-    '&&',
     'env',
     cargo_env,
     cargo,
     'build',
     cargo_options,
     '&&',
-    'ln',
+    'ln', '-f',
     cargo_target_dir / rust_profile / backend_executable_name,
     '@OUTPUT@',
   ],