From ad9aebd152f4bff862d489541f5e229018a93af3 Mon Sep 17 00:00:00 2001 From: James Shaw Date: Sat, 29 Mar 2008 19:00:12 +0000 Subject: Fix duplicated lines, add uninstall target svn path=/import/jshaw/libsprite/; revision=10022 --- trunk/Makefile | 11 +++++------ 1 file 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 -- cgit v1.2.3