Makefile 223 B

123456789101112131415
  1. SYS ?= $(shell gcc -dumpmachine)
  2. export SYS
  3. targets = all debug clean install
  4. ifeq ($(SYS),x86_64-linux-gnu)
  5. targets += pack
  6. endif
  7. .PHONY: $(targets)
  8. $(targets):
  9. for d in Pal LibOS; \
  10. do \
  11. $(MAKE) -C $$d $@; \
  12. done