-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.in
48 lines (37 loc) · 1.27 KB
/
Makefile.in
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
42
43
44
45
46
47
48
# This is the makefile for Rubber.
# As part of Rubber, it is covered by the GPL (see COPYING for details).
# (c) Emmanuel Beffara, 2002
prefix = @prefix@
bindir = @bindir@
moddir = @moddir@
mandir = @mandir@
### standard targets
all:
@python@ setup.py build
cd doc && $(MAKE) all
clean: clean-local
cd doc && $(MAKE) clean
clean-local:
rm -rf build dist MANIFEST
find . \( -name '*~' -or -name '*.py[co]' \) -exec rm {} \;
distclean: clean-local
rm -f rubber.spec Makefile settings.py src/version.py
cd doc && $(MAKE) distclean
install:
@python@ setup.py inst ${DESTDIR}${prefix}
### distribution-related targets
sdist:
rm -f MANIFEST
@python@ setup.py sdist
deb: sdist
cd dist ; tar zxf rubber-@[email protected] ; \
mv rubber-@[email protected] rubber_@[email protected]
cp -r debian dist/rubber-@version@/
rm -rf dist/rubber-@version@/debian/CVS
cd dist/rubber-@version@ ; dpkg-buildpackage -rfakeroot
rpm: sdist
mkdir -p build/rpm/{BUILD,RPMS/noarch,SOURCES,SPECS,SRPMS}
cp rubber.spec build/rpm/SPECS/
cp dist/rubber-@[email protected] build/rpm/SOURCES/
rpmbuild --define _topdir`pwd`/build/rpm --buildroot `pwd`/build/root -ba rubber.spec
mv build/rpm/RPMS/noarch/rubber-@version@-@[email protected] build/rpm/SRPMS/rubber-@version@-@[email protected] dist/