* [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
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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).