Skip to content

Commit

Permalink
ensure new py gets copied
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeharker committed Dec 11, 2024
1 parent 9525d85 commit e6e8f57
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ endif


# you should have xcb-proto installed to run this
xcffib: module/*.py xcffib.cabal $(shell find . -path ./test -prune -false -o -name \*.hs)
xcffib: xcffib_py_files xcffib.cabal $(shell find . -path ./test -prune -false -o -name \*.hs)
$(GEN) --input $(XCBDIR) --output ./xcffib
cp ./module/*py ./xcffib/
touch ./xcffib/py.typed
sed -i -e "s/__xcb_proto_version__ = .*/__xcb_proto_version__ = \"${XCBVER}\"/" xcffib/__init__.py

xcffib_py_files: $(addprefix xcffib/, $(notdir $(wildcard module/*.py)))

xcffib/%.py: module/%.py
cp $^ $@

.PHONY: xcffib-fmt
xcffib-fmt: module/*.py
ifeq (${PARALLEL},)
Expand Down

0 comments on commit e6e8f57

Please sign in to comment.