-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
executable file
·65 lines (47 loc) · 1.94 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
59
60
61
62
63
64
65
# Makefile for utility work on Aptus
install: build
python setup.py install
build:
python setup.py build
clean:
-rm -rf build dist
-rm -rf *.egg-info */*.egg-info */*/*.egg-info
-rm -f MANIFEST
-rm -f doc/*.png
-rm -rf __pycache__ */__pycache__ */*/__pycache__ */*/*/__pycache__
-rm -f *.pyc */*.pyc */*/*.pyc */*/*/*.pyc
-rm -f *.pyo */*.pyo */*/*.pyo */*/*/*.pyo
-rm -f *.bak */*.bak */*/*.bak */*/*/*.bak
-rm -f *.so */*.so */*/*.so */*/*/*.so
icon:
aptuscmd --size=64x64 --super=5 --output /tmp/aptus.png etc/icon.aptus
aptuscmd --size=64x64 --super=5 --output /tmp/aptus_mask.png etc/icon_mask.aptus
convert /tmp/aptus.png /tmp/aptus_mask.png -compose copy-opacity -composite src/aptus/web/static/icon.png
asm:
gcc.exe -mno-cygwin -mdll -O -Wall -Ic:\\Python25\\lib\\site-packages\\numpy\\core\\include -Ic:\\Python25\\include -Ic:\\Python25\\PC -c ext/engine.c -O3 -g -Wa,-alh > engine.lst
WEBHOME = ~/web/stellated/pages/code/aptus
%.png: %.aptus
aptuscmd $< --super=3 -o $*.png -s 1000x740
aptuscmd $< --super=3 -o $*_med.png -s 500x370
aptuscmd $< --super=5 -o $*_thumb.png -s 250x185
SAMPLE_PNGS := $(patsubst %.aptus,%.png,$(wildcard doc/*.aptus))
samples: $(SAMPLE_PNGS) build
publish_samples: samples
cp -v doc/*.png $(WEBHOME)
publish_doc:
cp -v doc/*.px $(WEBHOME)
publish: publish_doc publish_samples
DOWNLOAD_PY = https://raw.githubusercontent.com/nedbat/coveragepy/master/ci/download_gha_artifacts.py
download_kits:
wget -qO - $(DOWNLOAD_PY) | python - nedbat/aptus
python -m twine check dist/*
kit_upload: ## Upload the built distributions to PyPI.
twine upload --verbose dist/*
test_upload: ## Upload the distrubutions to PyPI's testing server.
twine upload --verbose --repository testpypi dist/*
SCSS = src/aptus/web/static/style.scss
CSS = src/aptus/web/static/style.css
sass:
pysassc --style=compact $(SCSS) $(CSS)
livesass:
echo src/aptus/web/static/style.scss | entr -n pysassc --style=compact $(SCSS) $(CSS)