include ../config

NAME = snow-1.1.2

PWD := $(shell pwd)

LSRCDIR= $(SRCDIR)/$(NAME)
LBUILDDIR = $(BUILDDIR)/$(NAME)
LTMPDIR = $(BUILDDIR)/$(NAME)

all: install

dirs: stamp-dirs
stamp-dirs: 
	touch stamp-dirs

untar: stamp-untar
stamp-untar: stamp-dirs
	cd $(SRCDIR) && tar xfz $(DEBSRCDIR)/snow-1.1.2.tar.gz
	touch stamp-untar


configure: stamp-configure
stamp-configure: stamp-untar
	cd $(LSRCDIR) && make config INSTALLROOT=$(INSTALLDIR)
	touch stamp-config

build: stamp-build
stamp-build: stamp-configure
	cd $(LSRCDIR) && PATH=$(INSTALLDIR)/bin:$$PATH \
		make
	touch stamp-build

install: stamp-install
stamp-install: stamp-build
	cd $(LSRCDIR) && PATH=$(INSTALLDIR)/bin:$$PATH \
		make install INSTALL_ROOT=$(INSTALLDIR)
	touch stamp-install
