Просмотр исходного кода

Make test script optional

master
JustAnotherArchivist 1 год назад
Родитель
Сommit
512ced5ebd
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      .make-and-exec-Makefile

+ 2
- 2
.make-and-exec-Makefile Просмотреть файл

@@ -1,4 +1,4 @@
.make-and-exec-binaries/%: %.c .%-test
.make-and-exec-binaries/%: %.c
mkdir -p .make-and-exec-binaries
$(CC) -O3 -o $@ $< $(CFLAGS)
./.$(notdir $(@))-test
[ -f ./.$(notdir $(@))-test ] && ./.$(notdir $(@))-test

Загрузка…
Отмена
Сохранить