Skip to content

Commit 2d83382

Browse files
committed
updated Makefile
1 parent 393ec22 commit 2d83382

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,16 @@ init:
7979
# dependency of same % stem prefix checks for a matching .py file to consider it a valid target
8080
#
8181
%.pyc: %.py
82-
@# this utility script supports taking .pyc or .pyo names and still does the right thing
82+
@# this utility script supports taking .pyc or .pyo names and still does the right thing,
8383
@bash-tools/python_pip_install_for_script.sh $@ --exclude harisekhon && \
84-
python -m py_compile `echo $@ | sed 's/\.pyc$$/.py/'`
84+
python -m py_compile $< && \
85+
echo && \
86+
echo Generated $@
8587
%.pyo: %.py
8688
@bash-tools/python_pip_install_for_script.sh $@ --exclude harisekhon && \
87-
python -O -m py_compile `echo $@ | sed 's/\.pyo$$/.py/'`
89+
python -O -m py_compile $< && \
90+
echo && \
91+
echo Generated $@
8892

8993
.PHONY: pylib
9094
pylib:

0 commit comments

Comments
 (0)