mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 14:25:39 +00:00
Implement "make user_uninstall". Original patch contributed by
Rudolf Marek. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2604 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -43,6 +43,9 @@ endif
|
||||
# executables.
|
||||
INCLUDEFILES += $(PROGDUMPSOURCES:.c=.rd)
|
||||
|
||||
REMOVEDUMPBIN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(SBINDIR)/%,$(PROGDUMPBININSTALL))
|
||||
REMOVEDUMPMAN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(PROGDUMPMAN8DIR)/%,$(PROGDUMPMAN8FILES))
|
||||
|
||||
all-prog-dump: $(PROGDUMPTARGETS)
|
||||
user :: all-prog-dump
|
||||
|
||||
@@ -58,6 +61,10 @@ install-prog-dump: all-prog-dump
|
||||
$(INSTALL) -m 644 $(PROGDUMPMAN8FILES) $(DESTDIR)$(PROGDUMPMAN8DIR)
|
||||
user_install :: install-prog-dump
|
||||
|
||||
user_uninstall::
|
||||
$(RM) $(REMOVEDUMPBIN)
|
||||
$(RM) $(REMOVEDUMPMAN)
|
||||
|
||||
clean-prog-dump:
|
||||
$(RM) $(PROGDUMPDIR)/*.rd $(PROGDUMPDIR)/*.ro $(PROGDUMPTARGETS)
|
||||
clean :: clean-prog-dump
|
||||
|
Reference in New Issue
Block a user