1. Christian Hudon
  2. vcprompt

Commits

Yuya Nishihara  committed d2bc4f9

makefile: add rule to install executable

  • Participants
  • Parent commits d1945d4
  • Branches default

Comments (0)

Files changed (2)

File Makefile

View file
 
 clean:
 	rm -f $(objects) vcprompt
+
+DESTDIR =
+PREFIX = /usr/local
+.PHONY: install
+install: vcprompt
+	install -d $(DESTDIR)$(PREFIX)/bin
+	install -m 755 -t $(DESTDIR)$(PREFIX)/bin vcprompt

File README.txt

View file
 
 To install it:
 
-  cp -p vcprompt ~/bin
+  make install PREFIX=$HOME
 
 To use it with bash, just call it in PS1: