File: Makefile

package info (click to toggle)
python-renishawwire 0.1.16-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,056 kB
  • sloc: python: 1,368; makefile: 28
file content (28 lines) | stat: -rw-r--r-- 612 bytes parent folder | download
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
EX_DIR=examples
SCR_DIR=renishawWiRE
EX_PYS:=$(wildcard $(EX_DIR)/ex*.py)
PKG_PYS:=$(wildcard $(SCR_DIR)/*.py)
DOWN_DONE=.downloaded
PIP_DONE=.piped

.PHONY: examples download $(EX_PYS) pip

pip: $(PIP_DONE)

$(PIP_DONE): setup.py $(PKG_PYS)
	pip install --upgrade ".[plot]"
	@touch $@

download: $(DOWN_DONE)

$(DOWN_DONE): $(EX_DIR)/spectra_files
	curl -LO https://github.com/alchem0x2A/py-wdf-reader/releases/download/binary/spectra_files.zip
	unzip -o spectra_files.zip -d examples/
	rm spectra_files.zip
	touch $@

examples: download pip $(EX_PYS)

$(EX_PYS):
	cd $(EX_DIR) &&\
	python $(shell basename $@)