* [PATCH rtc-tools v2] rtc-tools: Add a Makefile
@ 2022-01-27 22:59 Fabio Estevam
2022-02-15 16:42 ` Alexandre Belloni
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2022-01-27 22:59 UTC (permalink / raw)
To: alexandre.belloni; +Cc: peter.kjellerstedt, linux-rtc, Fabio Estevam
From: Fabio Estevam <festevam@denx.de>
Add a Makefile to make installation and uninstallation
process easier.
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Changes since v1:
- Simplify the Makefile by taking Peter Kjellerstedt's feedback in
the oe-devel list.
Makefile | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 Makefile
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..71a4c9c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+prefix ?= /usr
+bindir ?= $(prefix)/bin
+
+EXEC = rtc-range rtc rtc-sync
+
+all: $(EXEC)
+
+clean:
+ $(RM) $(EXEC)
+
+install:
+ install -d $(DESTDIR)$(bindir)
+ install $(EXEC) $(DESTDIR)$(bindir)
+
+uninstall:
+ $(RM) -r $(addprefix $(DESTDIR)$(bindir)/,$(EXEC))
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH rtc-tools v2] rtc-tools: Add a Makefile
2022-01-27 22:59 [PATCH rtc-tools v2] rtc-tools: Add a Makefile Fabio Estevam
@ 2022-02-15 16:42 ` Alexandre Belloni
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2022-02-15 16:42 UTC (permalink / raw)
To: Fabio Estevam
Cc: Alexandre Belloni, linux-rtc, Fabio Estevam, peter.kjellerstedt
On Thu, 27 Jan 2022 19:59:28 -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@denx.de>
>
> Add a Makefile to make installation and uninstallation
> process easier.
>
>
Applied, thanks!
[1/1] rtc-tools: Add a Makefile
commit: 61839777afedcc7bdb68ea4628c5ce5ca72c2ac8
Best regards,
--
Alexandre Belloni <alexandre.belloni@bootlin.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-15 16:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-27 22:59 [PATCH rtc-tools v2] rtc-tools: Add a Makefile Fabio Estevam
2022-02-15 16:42 ` Alexandre Belloni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.