1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

add install and uninstall rules in Makefile

This commit is contained in:
Maxime Biais
2012-10-21 20:55:50 +02:00
parent 95a0074edf
commit 758da604cd

View File

@ -1,4 +1,5 @@
CC=gcc -Wextra -Wall -Wno-missing-field-initializers -Wno-unused-parameter -std=gnu99 -ggdb -Wno-unused-function
prefix=/usr/local
.PHONY: all clean releasedep tarball
all: jq
@ -41,4 +42,14 @@ docs/content/2.download/source/jq.tgz: jq
mkdir -p `dirname $@`
tar -czvf $@ `git ls-files; ls *.gen.*`
tarball: docs/content/2.download/source/jq.tgz
tarball: docs/content/2.download/source/jq.tgz
install: jq
install -d -m 0755 $(prefix)/bin
install -m 0755 jq $(prefix)/bin
uninstall:
test -d $(prefix)/bin && \
cd $(prefix)/bin && \
rm -f jq