1#!/usr/bin/make 2 3VERSION ?= $(shell grep 'define NXT_VERSION' ../src/nxt_main.h \ 4 | sed -e 's/^.*"\(.*\)".*/\1/') 5 6RELEASE ?= 1 7 8default: 9 @echo "available targets: rpm" 10 11rpm: 12 @cd rpm && VERSION=$(VERSION) RELEASE=$(RELEASE) make all 13 14clean: 15 @cd rpm && make clean 16 17.PHONY: default rpm clean 18