Skip to content

Commit

Permalink
build: create empty config.mk if it does not exist
Browse files Browse the repository at this point in the history
This should fix `make local` (as used on travis-ci) and `make standalone`
in cases where `configure` was not run successfully due to missing
dependencies.
  • Loading branch information
martanne committed Mar 21, 2016
1 parent a0fff23 commit 01d4735
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ all: vis
config.h:
cp config.def.h config.h

config.mk:
@touch $@

vis: config.h config.mk *.c *.h
${CC} ${CFLAGS} ${CFLAGS_VIS} *.c ${LDFLAGS} ${LDFLAGS_VIS} -o $@

Expand Down

0 comments on commit 01d4735

Please sign in to comment.