Makefile (372:616449084bee) Makefile (373:b09757e4984e)
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:
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"
9 @echo "available targets: rpm deb"
10
11rpm:
12 @cd rpm && VERSION=$(VERSION) RELEASE=$(RELEASE) make all
13
10
11rpm:
12 @cd rpm && VERSION=$(VERSION) RELEASE=$(RELEASE) make all
13
14deb:
15 @cd deb && VERSION=$(VERSION) RELEASE=$(RELEASE) make all
16
14clean:
15 @cd rpm && make clean
17clean:
18 @cd rpm && make clean
19 @cd deb && make clean
16
20
17.PHONY: default rpm clean
21.PHONY: default rpm deb clean