-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
41 lines (34 loc) · 952 Bytes
/
makefile
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
PKG = chameleon
SPEC = $(PKG).spec
SETUP = setup.py
FEDORAPEOPLE = [email protected]
all : rpm
egg : clean
python $(SETUP) bdist_egg
rm -rf *.egg-info
dist : clean
mkdir -p dist
./sdist
rpm : dist
cp dist/$(PKG)*.gz /usr/src/redhat/SOURCES
rpmbuild -ba $(SPEC)
cp /usr/src/redhat/RPMS/noarch/$(PKG)*.rpm dist
cp /usr/src/redhat/SRPMS/$(PKG)*.rpm dist
rpmlint -i dist/$(PKG)*.rpm
release : rpm
scp dist/$(PKG)*.tar.gz fedorahosted.org:chameleon
scp dist/$(PKG)*.rpm fedorahosted.org:chameleon
clean :
rm -rf dist
rm -rf build
rm -rf *.egg-info
rm -rf /usr/src/redhat/BUILD/$(PKG)*
rm -rf /usr/src/redhat/RPMS/noarch/$(PKG)*
rm -rf /usr/src/redhat/SOURCES/$(PKG)*
rm -rf /usr/src/redhat/SRPMS/$(PKG)*
find . -name "*.pyc" -exec rm -f {} \;
find . -name "*~" -exec rm -f {} \;
find . -name "lextab.*" -exec rm -f {} \;
find . -name "parsetab.*" -exec rm -f {} \;
find . -name "*.out" -exec rm -f {} \;
.PHONY : clean