summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2009-02-01 17:57:22 (GMT)
committer John Tytgat <joty@netsurf-browser.org>2009-02-01 17:57:22 (GMT)
commit729b244809295dad81e0510f9d0bcd7a4c00ec00 (patch)
treea19d85d29a0d53677cb1903c0be40a72c5b1fd25
parente32462efb87f60c00c2b487cd019ba4193388ab2 (diff)
downloadlibsvgtiny-729b244809295dad81e0510f9d0bcd7a4c00ec00.tar.gz
libsvgtiny-729b244809295dad81e0510f9d0bcd7a4c00ec00.tar.bz2
Prefix build dirs with build- and svn ignore them. Simplify clean rule.
svn path=/trunk/libsvgtiny/; revision=6336
-rw-r--r--Makefile (renamed from makefile)9
1 files changed, 4 insertions, 5 deletions
diff --git a/makefile b/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