Determine the existence of a file in Makefile

Combine "wildcard" and "ifeq". For example,
ifneq "$(wildcard Makefile.inc)" ""
include Makefile.inc
endif
GNU Make is powerful!

No comments:

Post a Comment