Makefile 813 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Enable xlock build?
  2. export FEATURE_XLOCK ?= y
  3. # Enable xevrep build?
  4. export FEATURE_XEVREP ?= y
  5. # Enable tray frontend build?
  6. export FEATURE_TRAY ?= y
  7. ALL_TARGETS := backend \
  8. $(if $(filter 1 y,$(FEATURE_TRAY)),tray) \
  9. $(if $(filter 1 y,$(FEATURE_XLOCK)),xlock) \
  10. $(if $(filter 1 y,$(FEATURE_XEVREP)),xevrep)
  11. MAKE_FLAGS := --no-print-directory
  12. all: $(ALL_TARGETS)
  13. backend:
  14. $(MAKE) $(MAKE_FLAGS) -C backend all
  15. tray:
  16. $(MAKE) $(MAKE_FLAGS) -C tray all
  17. xlock:
  18. $(MAKE) $(MAKE_FLAGS) -C xlock all
  19. xevrep:
  20. $(MAKE) $(MAKE_FLAGS) -C xevrep all
  21. clean:
  22. for target in $(ALL_TARGETS); do $(MAKE) $(MAKE_FLAGS) -C $$target clean; done
  23. install: $(ALL_TARGETS)
  24. for target in $(ALL_TARGETS); do $(MAKE) $(MAKE_FLAGS) -C $$target install; done
  25. .PHONY: all backend tray xlock xevrep clean install