Skip to content

Instantly share code, notes, and snippets.

@jvmvik
Created March 6, 2019 13:47
Show Gist options
  • Select an option

  • Save jvmvik/a6b9ba746a337c4b2457f0dbcc126a47 to your computer and use it in GitHub Desktop.

Select an option

Save jvmvik/a6b9ba746a337c4b2457f0dbcc126a47 to your computer and use it in GitHub Desktop.
Makefile tips
# Makefile flash card
#
# check if file exist
ifneq ("$(wildcard $(path))","")
FILE_EXISTS = 1
else
FILE_EXISTS = 0
endif
# Ignore directory
.PHONY:
# run on list in parallel
# make -j 3
list=(a b c)
all: $(list)
$(list):
echo @$
# include a Makefile extension
include extension.mf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment