20 lines
445 B
Makefile
20 lines
445 B
Makefile
|
WORKDIR := /drone/src
|
||
|
BASEDIR := dist
|
||
|
|
||
|
.PHONY: all
|
||
|
all: prepare build
|
||
|
|
||
|
.PHONY: prepare
|
||
|
prepare:
|
||
|
mkdir -p $(WORKDIR)/$(BASEDIR)/{BUILD,RPMS,SOURCES,SPECS,SRPMS}; \
|
||
|
rsync -avHAX -q --ignore-missing-args $(WORKDIR)/patches/ $(WORKDIR)/$(BASEDIR)/SOURCES/
|
||
|
|
||
|
.PHONY: build
|
||
|
build:
|
||
|
source $(WORKDIR)/.drone.env && \
|
||
|
rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean:
|
||
|
rm -rf $(WORKDIR)/$(BASEDIR)
|