-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
54 lines (39 loc) · 1.17 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
ROOT=/
PREFIX=/usr
PYTHONDIR=${PREFIX}/lib/python2.7/site-packages
SHELLDIR=${PREFIX}/bin
MODULES=fileutils mets schematron sip xml xmllint
all: info
info:
@echo
@echo "PAS dpres-ipt"
@echo
@echo "Usage:"
@echo " make install - Install dpres-ipt"
@echo
install:
# Cleanup temporary files
rm -f INSTALLED_FILES
# write version module
python version.py > "ipt/version.py"
# Use Python setuptools
python setup.py build ; python ./setup.py install -O1 --prefix="${PREFIX}" --root="${ROOT}" --record=INSTALLED_FILES
# setup.py seems to be unable to create directories,
# create them here if needed
install3:
# Cleanup temporary files
rm -f INSTALLED_FILES
# write version module
python3 version.py > "ipt/version.py"
# Use Python setuptools
python3 setup.py build ; python3 ./setup.py install -O1 --prefix="${PREFIX}" --root="${ROOT}" --record=INSTALLED_FILES
# setup.py seems to be unable to create directories,
# create them here if needed
clean: clean-rpm
find . -iname '*.pyc' -type f -delete
find . -iname '__pycache__' -exec rm -rf '{}' \; | true
clean-rpm:
rm -rf rpmbuild
rpm-sources:
create-archive.sh
preprocess-spec-m4-macros.sh include/rhel7