# A comment

VERSION := 0.1.$(shell git log --oneline | wc -l | sed -e "s/ //g")

# Simple assignments
LIST=			Parser Grammar Objects Python Modules Mac
STRING=			'--with-pydebug'
NUMBER=			2.6
DOT=			.
DIR=			/usr/local
DIR_LIST=		Modules/threadmodule.o  Modules/signalmodule.o 
CMD_WITH_SWITCH=	gcc -pthread
DIR_WITH_SWITCH=	/usr/bin/install -c
ALL_SWITCHES=		-g -Wall -Wstrict-prototypes
EMPTY=

# Interpolation
SINGLE_PARENS=		$(CC)
MULTI_PARENS=		$(LOCALMODLIBS) $(BASEMODLIBS)
CMD_AND_PARENS=		svnversion $(srcdir)
DIR_AND_PARENS=		$(srcdir)/Modules/makesetup
BRACES=			${INSTALL}
DIR_AND_BRACES==	${prefix}/man
BRACES_AND_SWITCH=	${INSTALL} -m 644

# Multiline assignment
MULTI=	\
	Modules/config.o \
	Modules/getpath.o \
	Modules/main.o \
	Modules/gcmodule.o

MULTI_WITH_PARENS=	\
	Modules/getbuildinfo.o \
	$(PARSER_OBJS) \
	$(OBJECT_OBJS)

# Definition
simple:			$(BUILDPYTHON) oldsharedmods sharedmods
$(interpol):		Modules/python.o $(LIBRARY) $(LDLIBRARY)
multi dir/file.c:	Makefile.pre \
			Modules/Setup.local

# Commands
commands: $(SHELL) $(MAKESETUP) -c $(srcdir)/Modules/config.c.in
	@echo "The Makefile was updated, you may need to re-run make."

commands/complex: $(srcdir)/Modules/Setup.dist
	@if test -f Modules/Setup; then \
		echo "-----------------------------------------------"; \
	fi

commands_switch:	all platform
			-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f

frameworkaltinstallunixtools:
	cd Mac && $(MAKE) altinstallunixtools DESTDIR="$(DESTDIR)"
