efrei/programmation-c-cpp/tp2/Makefile

11 lines
239 B
Makefile
Raw Normal View History

2021-10-18 09:36:58 +02:00
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}