File: makefile

package info (click to toggle)
python-pure-sasl 0.5.1%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 164 kB
  • sloc: python: 772; makefile: 34; sh: 8
file content (19 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
RPMDIR := $(PWD)/redhat
PYTHON := python26
SUBDIRS := BUILD RPMS RPMS/noarch SOURCES SPECS SRPMS
DIRS := $(foreach subdir,$(SUBDIRS),$(RPMDIR)/$(subdir))

rpm: init
	python setup.py sdist -d $(RPMDIR)/SOURCES
	rpmbuild --define "_topdir $(RPMDIR)" --define "python $(PYTHON)" -ba $(RPMDIR)/pure-sasl.spec

init: testdir
	mkdir -p $(DIRS)

clean: testdir
	rm -rf $(DIRS)

testdir:
ifeq ($(wildcard setup.py),)
	$(error Must be run from same directory as setup.py)
endif