makefile 174 B

123456789101112
  1. UIFILES := $(wildcard *.ui)
  2. PYFILES := $(UIFILES:.ui=.py)
  3. CC = python3 -m PyQt5.uic.pyuic
  4. all: $(PYFILES)
  5. %.py: %.ui
  6. $(CC) -o $@ $<
  7. clean:
  8. rm $(PYFILES)