
default:	build

clean:
	rm -rf Makefile objs

.PHONY:	default clean

build:
	$(MAKE) -f objs/Makefile

install:
	$(MAKE) -f objs/Makefile install

modules:
	$(MAKE) -f objs/Makefile modules

upgrade:
	/usr/local/sbin/groonga-httpd -t

	kill -USR2 `cat /usr/local/var/run/groonga/groonga-httpd.pid`
	sleep 1
	test -f /usr/local/var/run/groonga/groonga-httpd.pid.oldbin

	kill -QUIT `cat /usr/local/var/run/groonga/groonga-httpd.pid.oldbin`

.PHONY:	build install modules upgrade
