/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/fixtures/make/Makefile
51 строка
733 B
rnvannatta
test(make): test target-specific variables on non-target
20 июл 2026, 22:33
20 июл 2026, 22:33
1029ae0
Код
Авторство
О чём код?
$(info confuse: make) CFLAGS=-MMD -MP NAME := sample .PHONY: all all: $(NAME) $(NAME): sample.o .INTERMEDIATE: sample.o sample.o: sample.c .PHONY: install install: all mkdir -p /usr/bin install -m 755 $(NAME) /usr/bin .PHONY: clean clean: -rm -f $(NAME) .test_passes: ./sample >/dev/null touch ^@ .cache/.1: touch $@ .cache/.2: touch $@ .cache/1: touch $@ .cache/2: touch $@ ifndef __BASH_MAKE_COMPLETION__ -include sample.d endif VARIABLE_LOOKS_A_BIT_LIKE_A_TARGET := fooled-you extra_makefile: touch $@ include extra_makefile # foobar is not actually a target, the line is setting target-specific variables # not defining a target so it shouldn't show up in the completion list fluff: foobar: OUCH = glitch