top_dir		:= $(CURDIR)

tmpdir		:= $(shell . ./common.sh; echo $$tmpdir)

# where to look for .deb files (local updates, archive base & admin dirs)
pathcmd		= ls -1ft $(CURDIR)/updates/P $(local_dir)/P $(archive)/cache/archives/P 2>/dev/null | head -1

export GZIP	:= -9

# shell needs to be set to base for the release target, at least
SHELL           := bash


##
## kernel versioning stuff
##

# Only need major and minor numbers, not patchlevel.
KERNEL_VERSION_CODE := $(shell echo ${kver} | \
			 awk -FS=. '{v = ($$1 * 65536 + $$2 * 256); print v;}')

##
## general makfile setting
##
# don't delete intermediate files
.SECONDARY:
# delete targets on error
.DELETE_ON_ERROR:


ifndef pcmcia_kver
pcmcia_kver		:= $(kver)
endif

#Local variables:
#mode: Makefile
#End:
