From: John Tytgat Date: Sun, 1 Feb 2009 17:57:22 +0000 (-0000) Subject: Prefix build dirs with build- and svn ignore them. Simplify clean rule. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=729b244809295dad81e0510f9d0bcd7a4c00ec00;p=libsvgtiny.git Prefix build dirs with build- and svn ignore them. Simplify clean rule. svn path=/trunk/libsvgtiny/; revision=6336 --- diff --git a/makefile b/Makefile similarity index 91% rename from makefile rename to Makefile index 89b83ae..8c33b28 100644 --- a/makefile +++ b/Makefile @@ -37,9 +37,9 @@ else PREFIX = /usr/local endif -OBJDIR = $(TARGET)$(SUBTARGET)objects -LIBDIR = $(TARGET)$(SUBTARGET)lib -BINDIR = $(TARGET)$(SUBTARGET)bin +OBJDIR = build-$(TARGET)$(SUBTARGET)objects +LIBDIR = build-$(TARGET)$(SUBTARGET)lib +BINDIR = build-$(TARGET)$(SUBTARGET)bin OBJS = $(addprefix $(OBJDIR)/, $(SOURCE:.c=.o)) @@ -71,5 +71,4 @@ install: $(LIBDIR)/libsvgtiny.a $(INSTALL) -t $(PREFIX)/include svgtiny.h clean: - -rm $(OBJS) $(LIBDIR)/libsvgtiny.a $(BINDIR)/svgtiny_test$(EXEEXT) colors.c - + -rm -rf $(OBJDIR) $(LIBDIR) $(BINDIR) colors.c