mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00

* refactor: remove non-source files from ply vendored * chore: xonsh/ply upgrade command from makefile
26 lines
547 B
Makefile
26 lines
547 B
Makefile
# Make GNU Make xonshy
|
|
SHELL=xonsh
|
|
.SHELLFLAGS=-c
|
|
.ONESHELL:
|
|
.SILENT:
|
|
|
|
# Unlike normal makefiles: executes the entire body in one go under xonsh, and doesn't echo
|
|
|
|
.PHONY: help
|
|
help:
|
|
print("""
|
|
Utility file for xonsh project. Try these targets:
|
|
* amalgamate: Generate __amalgam__.py files
|
|
* clean: Remove generated files (namely, the amalgamations)
|
|
""")
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
find xonsh -name __amalgam__.py -delete -print
|
|
|
|
.PHONY: amalgamate
|
|
amalgamate:
|
|
sys.path.insert(0, '.')
|
|
import setup
|
|
setup.amalgamate_source()
|
|
_ = sys.path.pop(0)
|