fail.mak 349 B

123456789101112131415161718192021
  1. # -*- make -*-
  2. # This prints a failure message but does not abort the make
  3. # Input
  4. # $(MESSAGE) - The message to show
  5. # $(PROGRAM) - The program/library/whatever.
  6. # See defaults.mak for information about LOCAL
  7. LOCAL := $(PROGRAM)
  8. $(LOCAL)-MSG := $(MESSAGE)
  9. # Install hooks
  10. program: $(PROGRAM)
  11. .PHONY: $(PROGRAM)
  12. $(PROGRAM) :
  13. echo $($@-MSG)