This repository was archived by the owner on Jan 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathMakefile
More file actions
90 lines (77 loc) · 2.88 KB
/
Makefile
File metadata and controls
90 lines (77 loc) · 2.88 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#
# Makefile for vfatqc package
#
BUILD_HOME := $(shell dirname `pwd`)
Project := vfatqc-python-scripts
ShortProject := vfatqc
Namespace := gempython
Package := vfatqc-python-scripts
ShortPackage := vfatqc
LongPackage := vfatqc
PackageName := $(Namespace)_$(ShortPackage)
PackageDir := pkg/$(Namespace)/$(ShortPackage)
ScriptDir := pkg/$(Namespace)/scripts
# Explicitly define the modules that are being exported (for PEP420 compliance)
PythonModules = ["$(Namespace).$(ShortPackage)", \
"$(Namespace).$(ShortPackage).utils", \
]
$(info PythonModules=${PythonModules})
VFATQC_VER_MAJOR:=$(shell ./config/tag2rel.sh | awk '{split($$0,a," "); print a[1];}' | awk '{split($$0,b,":"); print b[2];}')
VFATQC_VER_MINOR:=$(shell ./config/tag2rel.sh | awk '{split($$0,a," "); print a[2];}' | awk '{split($$0,b,":"); print b[2];}')
VFATQC_VER_PATCH:=$(shell ./config/tag2rel.sh | awk '{split($$0,a," "); print a[3];}' | awk '{split($$0,b,":"); print b[2];}')
include $(BUILD_HOME)/$(Project)/config/mfCommonDefs.mk
include $(BUILD_HOME)/$(Project)/config/mfPythonDefs.mk
include $(BUILD_HOME)/$(Project)/config/mfPythonRPM.mk
default:
@echo "Running default target"
$(MakeDir) $(PackageDir)
@cp -rf utils $(PackageDir)
@echo "__path__ = __import__('pkgutil').extend_path(__path__, __name__)" > pkg/$(Namespace)/__init__.py
@cp -rf __init__.py $(PackageDir)
# need to ensure that the python only stuff is packaged into RPMs
.PHONY: clean package preprpm
package: default
$(MakeDir) $(ScriptDir)
@cp -rf checkSbitMappingAndRate.py $(ScriptDir)
@cp -rf conf*.py $(ScriptDir)
@cp -rf dacScanV3.py $(ScriptDir)
@cp -rf fastLatency.py $(ScriptDir)
@cp -rf getCalInfoFromDB.py $(ScriptDir)
@cp -rf iterativeTrim.py $(ScriptDir)
@cp -rf monitorTemperatures.py $(ScriptDir)
@cp -rf run_scans.py $(ScriptDir)
@cp -rf sbitReadOut.py $(ScriptDir)
@cp -rf sbitThreshScan.py $(ScriptDir)
@cp -rf testConnectivity.py $(ScriptDir)
@cp -rf trimChamber.py $(ScriptDir)
@cp -rf trimChamberV3.py $(ScriptDir)
@cp -rf ultra*.py $(ScriptDir)
@cp -rf updateVFAT3ConfFiles.py $(ScriptDir)
.PHONY: doc cleandoc
doc: package
$(MAKE) -C $@ docs
cleandoc:
$(MAKE) -C doc cleanall
_rpmprep: preprpm
@echo "Running _rpmprep target"
preprpm: package
@echo "Running preprpm target"
@cp -rf config/scriptlets/installrpm.sh pkg/
-cp -rf README.md LICENSE CHANGELOG.md MANIFEST.in requirements.txt $(PackageDir)
-cp -rf README.md LICENSE CHANGELOG.md MANIFEST.in requirements.txt pkg
clean:
@echo "Running clean target"
-rm -rf $(ScriptDir)
-rm -rf $(PackageDir)
-rm -f pkg/$(Namespace)/__init__.py
-rm -f pkg/README.md
-rm -f pkg/LICENSE
-rm -f pkg/MANIFEST.in
-rm -f pkg/CHANGELOG.md
-rm -f pkg/requirements.txt
-rm -f pkg/installrpm.sh
print-env:
@echo BUILD_HOME $(BUILD_HOME)
@echo GIT_VERSION $(GIT_VERSION)
@echo PYTHON_VERSION $(PYTHON_VERSION)
@echo GEMDEVELOPER $(GEMDEVELOPER)