File: Makefile

package info (click to toggle)
ereandel 0.26.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: sh: 518; makefile: 34
file content (20 lines) | stat: -rw-r--r-- 525 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PHONY: install uninstall

PREFIX ?= ~/.local
BINDIR?=$(PREFIX)/bin
DOCDIR?=$(PREFIX)/share/doc/ereandel
MANDIR?=$(PREFIX)/share/man/man1
#LICENSEDIR?=$(PREFIX)/share/doc/ereandel

install:
	mkdir -p $(BINDIR) $(DOCDIR) $(LICENSEDIR) $(MANDIR)
	install -m +rx ereandel $(BINDIR)/
	install -m +r README.md CONTRIBUTING.md $(DOCDIR)/
#	install -m +r LICENSE $(LICENSEDIR)/
	install -m +r ereandel.en.1 $(MANDIR)/ereandel.1

uninstall:
	rm $(BINDIR)/ereandel
	rm -rf $(DOCDIR)
#	rm -rf $(LICENSEDIR)
	rm -f $(MANDIR)/ereandel.1