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