Commits

jjacky committed 9cd9065

Install doc & example config in usr/share/doc/weechat/weeplugins

  • Participants
  • Parent commits 99b1912

Comments (0)

Files changed (1)

 CFLAGS := -g -std=c99 -fPIC $(WARNINGS)
 
 CC = cc
-INSTALL = install -s
+INSTALL = install
 
 all: weenick.so weereact.so
 
 	rm -f *.o *.so
 
 install:
-	$(INSTALL) -Dm755 weenick.so  $(DESTDIR)/usr/lib/weechat/plugins/weenick.so
-	$(INSTALL) -Dm755 weereact.so $(DESTDIR)/usr/lib/weechat/plugins/weereact.so
+	$(INSTALL) -s -Dm755 weenick.so  $(DESTDIR)/usr/lib/weechat/plugins/weenick.so
+	$(INSTALL) -s -Dm755 weereact.so $(DESTDIR)/usr/lib/weechat/plugins/weereact.so
+	$(INSTALL) -Dm644 AUTHORS        $(DESTDIR)/usr/share/doc/weechat/weeplugins/AUTHORS
+	$(INSTALL) -Dm644 COPYING        $(DESTDIR)/usr/share/doc/weechat/weeplugins/COPYING
+	$(INSTALL) -Dm644 README.md      $(DESTDIR)/usr/share/doc/weechat/weeplugins/README.md
+	$(INSTALL) -Dm644 weereact.conf  $(DESTDIR)/usr/share/doc/weechat/weeplugins/weereact.conf
 
 uninstall:
 	rm $(DESTDIR)/usr/lib/weechat/plugins/weenick.so
 	rm $(DESTDIR)/usr/lib/weechat/plugins/weereact.so
+	rm -rf $(DESTDIR)/usr/share/doc/weechat/weeplugins
+	rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/doc/weechat