File: Makefile

package info (click to toggle)
cpuset 1.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 724 kB
  • sloc: python: 2,509; sh: 107; makefile: 93
file content (41 lines) | stat: -rw-r--r-- 563 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
PREFIX	?= $(HOME)
DESTDIR	?= /
PYTHON	?= python

all:
	$(PYTHON) setup.py build

rpm:
	$(PYTHON) setup.py bdist_rpm

srcrpm:
	$(PYTHON) setup.py bdist_rpm

srcdist:
	$(PYTHON) setup.py sdist

install:
	$(PYTHON) setup.py install --prefix=$(PREFIX) --root=$(DESTDIR)

test:
	cd t && $(MAKE) all

doc:
	cd doc && $(MAKE) all

clean:
	for dir in doc t; do \
		(cd $$dir && $(MAKE) clean); \
	done
	rm -rf build
	rm -f cpuset/*.pyc
	rm -f cpuset/commands/*.pyc
	rm -f TAGS

clobber: clean
	rm -rf dist

tags:
	ctags -e -R cpuset/*

.PHONY: all install doc test clean