efrei/programmation-c-cpp/tp4/Makefile

12 lines
250 B
Makefile
Raw Normal View History

2021-11-15 10:10:06 +01:00
CFLAGS=-lm
C_FILES=$(shell find . -name '*.*')
TARGETS=$(notdir $(basename ${C_FILES}))
all: ${TARGETS}
@for target in ${TARGETS}; do \
grep -q $${target} ../../.gitignore || echo $${target} >> ../../.gitignore; \
done
clean:
rm -f ${TARGETS}