forked from msanchezc/pycupid
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
58 lines (44 loc) · 1.42 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
54
55
56
57
58
current_dir := $(shell pwd)
starlink_dir := $(current_dir)/pycupid/star
unexport STARLINK
unexport INSTALL
export STARCONF_DEFAULT_PREFIX := $(starlink_dir)
export STARCONF_DEFAULT_STARLINK := $(starlink_dir)
export PATH := $(starlink_dir)/bin:$(starlink_dir)/buildsupport/bin:$(PATH)
export FC := gfortran
export F77 := gfortran
PYTHONS =2.7 3.4 3.5 3.6
DIST =$(shell uname )
ifeq ($(DIST), Linux)
PLATAFORM = manylinux1_x86_64
else
PLATAFORM = TMP
endif
all: buildcupid
upload_wheels: build_wheels
twine upload dist/*
build_wheels: clean $(PYTHONS) auditwheels
$(PYTHONS): %:
./build_wheel.sh $@ $(PLATAFORM)
auditwheels: $(PYTHONS)
./auditwheels.sh
.PHONY: buildcupid
buildcupid: $(starlink_dir)/bin/cupid
.PHONY: buildsupport
buildsupport: $(starlink_dir)/buildsupport
.PHONY: updatestarlink
updatestarlink:
git submodule update --init
$(starlink_dir)/buildsupport: updatestarlink
cd ./starlink && ./bootstrap --buildsupport
$(starlink_dir)/bin/cupid: buildsupport
cd ./starlink && ./bootstrap
$(MAKE) -C ./starlink configure-deps
cd ./starlink && ./configure -C --without-stardocs
$(MAKE) -C ./starlink $(starlink_dir)/manifests/cupid
strip -S --strip-unneeded --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag $(current_dir)/pycupid/star/lib/*.so
.PHONY: clean
clean:
-rm -rf build/
-rm -rf dist/
-rm -f *.so