linux-rtc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Fabio Estevam <festevam@gmail.com>
To: alexandre.belloni@bootlin.com
Cc: peter.kjellerstedt@axis.com, linux-rtc@vger.kernel.org,
	Fabio Estevam <festevam@denx.de>
Subject: [PATCH rtc-tools v2] rtc-tools: Add a Makefile
Date: Thu, 27 Jan 2022 19:59:28 -0300	[thread overview]
Message-ID: <20220127225928.34214-1-festevam@gmail.com> (raw)

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


             reply	other threads:[~2022-01-27 22:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-27 22:59 Fabio Estevam [this message]
2022-02-15 16:42 ` [PATCH rtc-tools v2] rtc-tools: Add a Makefile Alexandre Belloni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220127225928.34214-1-festevam@gmail.com \
    --to=festevam@gmail.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=festevam@denx.de \
    --cc=linux-rtc@vger.kernel.org \
    --cc=peter.kjellerstedt@axis.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).