pash: simpler Makefile
This commit is contained in:
parent
e1c4b77147
commit
c1758204df
10
Makefile
10
Makefile
|
@ -1,16 +1,10 @@
|
|||
PREFIX ?= /usr
|
||||
DOCDIR ?= $(PREFIX)/share/doc/pash
|
||||
|
||||
all:
|
||||
@echo Run \'make install\' to install pash.
|
||||
|
||||
install:
|
||||
@mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||
@mkdir -p $(DESTDIR)$(DOCDIR)
|
||||
@cp -p pash $(DESTDIR)$(PREFIX)/bin/pash
|
||||
@cp -p README.md $(DESTDIR)$(DOCDIR)
|
||||
@chmod 755 $(DESTDIR)$(PREFIX)/bin/pash
|
||||
@install -Dm755 pash $(DESTDIR)$(PREFIX)/bin/pash
|
||||
|
||||
uninstall:
|
||||
@rm -rf $(DESTDIR)$(PREFIX)/bin/pash
|
||||
@rm -rf $(DESTDIR)$(DOCDIR)
|
||||
@rm -f $(DESTDIR)$(PREFIX)/bin/pash
|
||||
|
|
Loading…
Reference in New Issue