Skip to content
Snippets Groups Projects
Commit 8f9038e3 authored by Adrien Rougny's avatar Adrien Rougny
Browse files

Makefile: défini à partir de src/cpp/read_program.cpp

parent f29f588e
No related branches found
No related tags found
No related merge requests found
......@@ -6,12 +6,14 @@ INPUT_PROGRAMS=$(wildcard data/*input.cpp)
PROGRAMS_MASSAGED=$(PROGRAMS:data/%.cpp=data/static/%.cpp)
PROGRAM_ANSWERS=$(PROGRAMS:data/%.cpp=data/static/%.cpp.answer)
#ANSWER=$(INPUT_PROGRAMS:%=%.answer)
TARGETS=$(shell cd data; ls *.cpp | cut -d '_' -f 1 - | sort | uniq)
TARGETS=$(shell head -1 src/cpp/read_program.cpp | awk -F'=' '{print $$2}')
all: data/static/index $(PROGRAMS_MASSAGED) $(PROGRAM_ANSWERS)
data/static/index: $(PROGRAMS) data/static
if [ -f $@ ]; then rm $@; fi; \
data/static/index: $(PROGRAMS) data/static src/cpp/read_program.cpp
echo $(TARGETS)
@if [ -f $@ ]; then rm $@; fi; \
for target in $(TARGETS); do \
(echo "$$target: "`cd data; ls -m $${target}_*.cpp`) >> $@; \
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment