Alexander Goncharov has uploaded this change for review.

View Change

Makefile: add `uninstall` target

This target will delete all the installed files (the copies that the
`install` target create).

According to GNU Makefile documentation, `uninstall` is standard
target. Part of flashrom's users will expect this target to be realized.

Change-Id: I04c4f8ac5ec8ffb715b2cc3104521b90b76d7e3a
Signed-off-by: Alexander Goncharov <chat@joursoir.net>
---
M Makefile
1 file changed, 21 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/42/69442/1
diff --git a/Makefile b/Makefile
index 425b58c..c0a3bc8 100644
--- a/Makefile
+++ b/Makefile
@@ -993,6 +993,11 @@
$(INSTALL) -m 0755 $(PROGRAM)$(EXEC_SUFFIX) $(DESTDIR)$(PREFIX)/sbin
$(INSTALL) -m 0644 $(PROGRAM).8 $(DESTDIR)$(MANDIR)/man8

+uninstall:
+ @rm -v \
+ "$(DESTDIR)$(PREFIX)/sbin/$(PROGRAM)$(EXEC_SUFFIX)" \
+ "$(DESTDIR)$(MANDIR)/man8/$(PROGRAM).8"
+
libinstall: libflashrom.a include/libflashrom.h
mkdir -p $(DESTDIR)$(PREFIX)/lib
$(INSTALL) -m 0644 libflashrom.a $(DESTDIR)$(PREFIX)/lib

To view, visit change 69442. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I04c4f8ac5ec8ffb715b2cc3104521b90b76d7e3a
Gerrit-Change-Number: 69442
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Goncharov <chat@joursoir.net>
Gerrit-MessageType: newchange