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!


Related posts:

  1. Jumbled Characters after Catting a Binary File
  2. SSH without password
  3. Disk size needed to compile OpenOffice
  4. Send Ctrl-A to sessions in SCREEN
  5. Scilab

Tags: ,

Leave a Reply

*

Hint: Register at Gravatar and your comments will be accompanied by your personalized icon.