瀏覽代碼

Add "uninstall" target to the Makefile.

parazyd 5 年之前
父節點
當前提交
9e88f14d06
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Makefile

+ 3 - 0
Makefile

@@ -14,6 +14,9 @@ install: scroll
 	cp -f scroll $(DESTDIR)$(BINDIR)
 	cp -f scroll.1 $(DESTDIR)$(MANDIR)/man1
 
+uninstall:
+	rm -f $(DESTDIR)$(BINDIR)/scroll $(DESTDIR)$(MANDIR)/man1/scroll.1
+
 test: scroll ptty
 	# check usage
 	if ./ptty ./scroll -h; then exit 1; fi