VERSION = 1.3
curdir := $(shell pwd | sed 's/.*\/\([^\/]*$$\)/\1/g') 

all:
	test -e src/Makefile || ./configure
	$(MAKE) -C src $@

install realclean clean distclean:
	$(MAKE) -C src $@
tgz:
	pwd
	cd .. && tar czvf chttpd.tgz $(curdir) --exclude=.svn
	mv ../chttpd.tgz ./
