make: added uninstall target
This commit is contained in:
parent
54273181bf
commit
8d655dd212
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
@ -93,6 +93,12 @@ install: $(SHARED) $(STATIC)
|
|||
$(INSTALL) -m 0755 $(STATIC) $(DESTDIR)$(LIBDIR)
|
||||
$(INSTALL) -m 0644 $(MK) $(DESTDIR)$(MKDIR)
|
||||
|
||||
uninstall:
|
||||
@rm -rf $(DESTDIR)$(INCDIR)
|
||||
@rm -rf $(DESTDIR)$(MKDIR)
|
||||
@rm -f $(DESTDIR)$(LIBDIR)/$(SHARED)
|
||||
@rm -f $(DESTDIR)$(LIBDIR)/$(STATIC)
|
||||
|
||||
-include test.d
|
||||
|
||||
test.o: test.c Makefile $(MK)
|
||||
|
|
Loading…
Add table
Reference in a new issue