-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
34 lines (27 loc) · 834 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
PREFIX=/usr
ROOT=
PYROOT=${ROOT}/
all: info
info:
@echo
@echo "Usage:"
@echo " make clean - Clean some temporary file"
@echo " make install - Install file-scraper"
@echo
clean: clean-rpm
rm -f INSTALLED_FILES
rm -f INSTALLED_FILES.in
install: clean
python setup.py build ; python ./setup.py install -O1 --prefix="${PREFIX}" --root="${PYROOT}" --record=INSTALLED_FILES.in
cat INSTALLED_FILES.in | sed 's/^/\//g' >> INSTALLED_FILES
echo "-- INSTALLED_FILES"
cat INSTALLED_FILES
echo "--"
install3: clean
python3 setup.py build ; python3 ./setup.py install -O1 --prefix="${PREFIX}" --root="${PYROOT}" --record=INSTALLED_FILES.in
cat INSTALLED_FILES.in | sed 's/^/\//g' >> INSTALLED_FILES
echo "-- INSTALLED_FILES"
cat INSTALLED_FILES
echo "--"
clean-rpm:
rm -rf rpmbuild