diff options
author | Fabio Estevam <festevam@denx.de> | 2022-01-27 19:59:28 -0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2022-02-15 17:41:43 +0100 |
commit | 61839777afedcc7bdb68ea4628c5ce5ca72c2ac8 (patch) | |
tree | daf10ab77879b1887d8d71253e496eda12543cca | |
parent | acc442e7af4e1e783432a43d37f1a7938c692659 (diff) | |
download | rtc-tools-master.tar.gz |
Add a Makefile to make installation and uninstallation
process easier.
Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220127225928.34214-1-festevam@gmail.com
-rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
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)) |