Explorar o código

Added install target to Makefile.

joehillen %!s(int64=13) %!d(string=hai) anos
pai
achega
ef0c08cdfe
Modificáronse 2 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      Makefile
  2. BIN=BIN
      youtube-dl

+ 4 - 1
Makefile

@@ -23,4 +23,7 @@ compile:
 	cat youtube-dl.zip >> youtube-dl
 	rm youtube-dl.zip
 
-.PHONY: default compile update update-latest update-readme
+install: youtube-dl
+	install -m 755 --owner root --group root youtube-dl /usr/local/bin/
+
+.PHONY: default compile update update-latest update-readme install

BIN=BIN
youtube-dl