Skip to content

Commit

Permalink
Have Makefile import local.mk if it exists.
Browse files Browse the repository at this point in the history
This will allow users to override build settings without dirtying their
trees, making life with `git stash' a bit easier.

Signed-off-by: Samuel Bronson <naesten@gmail.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
  • Loading branch information
SamB authored and sparsecli committed Jul 18, 2009
1 parent 5d4c7fc commit 8d86d0e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -33,3 +33,7 @@ patches-*
# quilt's files
patches
series

# local makefile
local.mk

10 changes: 8 additions & 2 deletions Makefile
Expand Up @@ -10,9 +10,10 @@ LDFLAGS += -g
AR = ar

#
# For debugging, uncomment the next one
# For debugging, put this in local.mk:
#
# CFLAGS += -O0 -DDEBUG -g3 -gdwarf-2
#
#CFLAGS += -O0 -DDEBUG -g3 -gdwarf-2

HAVE_LIBXML=$(shell pkg-config --exists libxml-2.0 && echo 'yes')
HAVE_GCC_DEP=$(shell touch .gcc-test.c && \
Expand Down Expand Up @@ -89,6 +90,11 @@ SED_PC_CMD = 's|@version@|$(VERSION)|g; \
s|@includedir@|$(INCLUDEDIR)|g'



# Allow users to override build settings without dirtying their trees
-include local.mk


all: $(PROGRAMS) sparse.pc

install: $(INST_PROGRAMS) $(LIBS) $(LIB_H) sparse.pc
Expand Down

0 comments on commit 8d86d0e

Please sign in to comment.