summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Shaw <jshaw@netsurf-browser.org>2008-03-29 19:00:12 (GMT)
committer James Shaw <jshaw@netsurf-browser.org>2008-03-29 19:00:12 (GMT)
commitad9aebd152f4bff862d489541f5e229018a93af3 (patch)
tree7ca335b8ccbfa9f3bf5970dbde8a30aa678e4b1d
parent5ca451cf34283a7f23dfaa9864a6c422c0229f0c (diff)
downloadlibrosprite-ad9aebd152f4bff862d489541f5e229018a93af3.tar.gz
librosprite-ad9aebd152f4bff862d489541f5e229018a93af3.tar.bz2
Fix duplicated lines, add uninstall target
svn path=/import/jshaw/libsprite/; revision=10022
-rw-r--r--trunk/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/trunk/Makefile b/trunk/Makefile
index 84bd408..ce01362 100644
--- a/trunk/Makefile
+++ b/trunk/Makefile
@@ -19,12 +19,7 @@ LDFLAGS = -L./
# Installation prefix, if not already defined (e.g. on command line)
PREFIX ?= /usr/local
-.PHONY: all clean docs install
-
-# Installation prefix, if not already defined (e.g. on command line)
-PREFIX ?= /usr/local
-
-.PHONY: all clean docs install
+.PHONY: all clean docs install uninstall
all: example palette2c
@@ -56,3 +51,7 @@ install: librosprite.a
$(SED) -e 's#PREFIX#$(PREFIX)#' librosprite.pc.in > librosprite.pc
$(INSTALL) --mode=644 -t $(PREFIX)/lib/pkgconfig librosprite.pc
+uninstall:
+ rm $(PREFIX)/lib/librosprite.a
+ rm $(PREFIX)/include/librosprite.h
+ rm $(PREFIX)/lib/pkgconfig/librosprite.pc