rust-zram-generator/0002-make-print-executed-commands.patch

47 lines
1.5 KiB
Diff
Raw Normal View History

2021-10-26 15:32:49 +00:00
From 87f3f12d27f7a81891f9a6942de22a6084e9bc1a Mon Sep 17 00:00:00 2001
2021-10-26 14:38:13 +00:00
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Date: Tue, 26 Oct 2021 16:11:53 +0200
2021-10-26 15:32:49 +00:00
Subject: [PATCH 2/5] make: print executed commands
2021-10-26 14:38:13 +00:00
2021-10-26 15:32:49 +00:00
The initial version of the Makefile used @ everywhere, but this can hide
errors in the executed commands. The user should instead use "make --silent" if
they want to hide the commands.
2021-10-26 14:38:13 +00:00
---
Makefile | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
2021-10-26 15:32:49 +00:00
index 49baab926f..ff3d4e80d9 100644
2021-10-26 14:38:13 +00:00
--- a/Makefile
+++ b/Makefile
2021-10-26 15:32:49 +00:00
@@ -19,23 +19,23 @@ build: program systemd-service man
2021-10-26 14:38:13 +00:00
program:
2021-10-26 15:32:49 +00:00
@test -n "$(SYSTEMD_UTIL_DIR)"
2021-10-26 14:38:13 +00:00
- @$(CARGO) build --release $(CARGOFLAGS)
+ $(CARGO) build --release $(CARGOFLAGS)
systemd-service:
@test -n "$(SYSTEMD_SYSTEM_GENERATOR_DIR)"
- @sed -e 's,@SYSTEMD_SYSTEM_GENERATOR_DIR@,$(SYSTEMD_SYSTEM_GENERATOR_DIR),' \
+ sed -e 's,@SYSTEMD_SYSTEM_GENERATOR_DIR@,$(SYSTEMD_SYSTEM_GENERATOR_DIR),' \
< units/systemd-zram-setup@.service.in \
> units/systemd-zram-setup@.service
man:
- @$(RONN) --organization="zram-generator developers" man/*.md
+ $(RONN) --organization="zram-generator developers" man/*.md
check: program
- @$(CARGO) test --release $(CARGOFLAGS)
+ $(CARGO) test --release $(CARGOFLAGS)
clean:
- @$(CARGO) clean
- @rm -f units/systemd-zram-setup@.service
+ $(CARGO) clean
+ rm -f units/systemd-zram-setup@.service
install: build
@test -n "$(SYSTEMD_SYSTEM_GENERATOR_DIR)"