Переглянути джерело

Make test script optional

master
JustAnotherArchivist 1 рік тому
джерело
коміт
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

Завантаження…
Відмінити
Зберегти