Преглед на файлове

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

Зареждане…
Отказ
Запис