2019-02-25 00:31:33 -06:00
|
|
|
PREFIX ?= /usr
|
2019-02-25 00:47:00 -06:00
|
|
|
MANDIR ?= $(PREFIX)/share/man
|
2019-02-25 00:31:33 -06:00
|
|
|
DOCDIR ?= $(PREFIX)/share/doc/pash
|
|
|
|
|
|
|
|
all:
|
|
|
|
@echo Run \'make install\' to install pash.
|
|
|
|
|
|
|
|
install:
|
|
|
|
@mkdir -p $(DESTDIR)$(PREFIX)/bin
|
2019-02-25 00:47:00 -06:00
|
|
|
@mkdir -p $(DESTDIR)$(MANDIR)/man1
|
2019-02-25 00:31:33 -06:00
|
|
|
@mkdir -p $(DESTDIR)$(DOCDIR)
|
|
|
|
@cp -p pash $(DESTDIR)$(PREFIX)/bin/pash
|
2019-02-25 00:47:00 -06:00
|
|
|
@cp -p pash.1 $(DESTDIR)$(MANDIR)/man1
|
2019-02-25 00:31:33 -06:00
|
|
|
@cp -p README.md $(DESTDIR)$(DOCDIR)
|
|
|
|
@chmod 755 $(DESTDIR)$(PREFIX)/bin/pash
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
@rm -rf $(DESTDIR)$(PREFIX)/bin/pash
|
2019-02-25 00:47:00 -06:00
|
|
|
@rm -rf $(DESTDIR)$(MANDIR)/man1/pash.1
|
2019-02-25 00:31:33 -06:00
|
|
|
@rm -rf $(DESTDIR)$(DOCDIR)
|