linkchanbot

[python] Telegram bot link substituter for frontends
git clone https://git.torresjrjr.com/linkchanbot.git
Log | Files | Refs | README | LICENSE

Makefile (971B)


      1 
      2 .POSIX:
      3 .SUFFIXES:
      4 .SUFFIXES: .1 .1.scd
      5 
      6 VERSION=0.0.0
      7 
      8 PREFIX?=/usr/local
      9 BINDIR?=$(PREFIX)/bin
     10 SHAREDIR?=$(PREFIX)/share/linkchan
     11 MANDIR?=$(PREFIX)/share/man
     12 
     13 VPATH=doc
     14 
     15 DOCS := \
     16 	linkchanbot.1
     17 
     18 all: doc
     19 
     20 doc: $(DOCS)
     21 
     22 .1.scd.1:
     23 	scdoc < $< > $@
     24 
     25 clean:
     26 	$(RM) $(DOCS)
     27 
     28 install: all
     29 	mkdir -m755 -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(SHAREDIR) $(DESTDIR)$(MANDIR)/man1
     30 	install -m755 linkchanbot $(DESTDIR)$(BINDIR)/linkchanbot
     31 	install -m644 linkchanbot.1 $(DESTDIR)$(MANDIR)/man1/linkchanbot.1
     32 	install -m644 sample.config/bot.cfg $(DESTDIR)$(SHAREDIR)/bot.cfg
     33 	install -m644 sample.config/alts.json $(DESTDIR)$(SHAREDIR)/alts.json
     34 	install -m644 sample.config/services.json $(DESTDIR)$(SHAREDIR)/services.json
     35 
     36 uninstall:
     37 	$(RM) $(DESTDIR)$(BINDIR)/linkchanbot
     38 	$(RM) $(DESTDIR)$(MANDIR)/man1/linkchanbot.1
     39 	$(RM) $(DESTDIR)$(SHAREDIR)/bot.cfg
     40 	$(RM) $(DESTDIR)$(SHAREDIR)/alts.json
     41 	$(RM) $(DESTDIR)$(SHAREDIR)/services.json
     42 
     43 .PHONY: all doc clean install uninstall