efrei/programmation-c-cpp/tp1/Makefile

11 lines
239 B
Makefile
Raw Normal View History

2021-10-12 12:32:46 +02:00
C_FILES=$(shell find . -name '*.*')
TARGETS=$(notdir $(basename ${C_FILES}))
2021-10-12 09:01:02 +02:00
2021-10-12 12:17:28 +02:00
all: ${TARGETS}
@for target in ${TARGETS}; do \
grep -q $${target} ../../.gitignore || echo $${target} >> ../../.gitignore; \
done
2021-10-12 10:58:47 +02:00
2021-10-12 09:01:02 +02:00
clean:
2021-10-12 12:17:28 +02:00
rm -f ${TARGETS}