]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
Prefix build dirs with build- and svn ignore them. Simplify clean rule.
authorJohn Tytgat <joty@netsurf-browser.org>
Sun, 1 Feb 2009 17:57:22 +0000 (17:57 -0000)
committerJohn Tytgat <joty@netsurf-browser.org>
Sun, 1 Feb 2009 17:57:22 +0000 (17:57 -0000)
svn path=/trunk/libsvgtiny/; revision=6336

Makefile [moved from makefile with 91% similarity]

similarity index 91%
rename from makefile
rename to Makefile
index 89b83ae844b2116fd83f881ac522c9de50dceb71..8c33b28ab233aa92c791d8d39cc433d6fecc9e14 100644 (file)
--- 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