1
2foo: -lcat
3
4# Removing second expansion prevents segfault
5.SECONDEXPANSION:
6foo: $$@.o ;
7
8# Having an empty command here prevents segfault unless,
9# the environment is empty. `env -i make foo`
10# MFLAGS=-w or MAKEFLAGS=-w `env MFLAGS=-w make foo`
11# libcat.a target calls an extra command, `@true \n @touch $@`
12# odd.
13%.o: ; @true
14
15# Having an empty command prevents segfault.
16-l%: lib%.a ; @true
17
18# Not creating libcat.a here prevents segfault,
19libcat.a: ; @touch $@