better clean ig

This commit is contained in:
Mylloon 2023-10-28 11:22:50 +02:00
parent af2646e46e
commit 1ee2bc5603
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -12,6 +12,8 @@ EXE_EXT = out
PDF_LOCATION = report
PDF_FILE = explications.pdf
ARCHIVE = $(EXE).tar
%.cpp.o: src/%.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS) $(DEVFLAGS)
@ -37,10 +39,11 @@ pdf-clean:
$(MAKE) clean
clean: pdf-clean
$(RM) $(OBJETS) $(EXE).$(EXE_EXT)
$(RM) $(OBJETS) "$(EXE).$(EXE_EXT)" "$(ARCHIVE)"
archive: pdf-make
cp $(PDF_LOCATION)/$(PDF_FILE) .
$(TAR) "$(EXE).tar" $(SOURCES) $(wildcard includes/*.hpp) Makefile \
binome.txt $(PDF_FILE)
cp "$(PDF_LOCATION)/$(PDF_FILE)" .
$(TAR) "$(ARCHIVE)" $(SOURCES) $(wildcard includes/*.hpp) Makefile \
binome.txt "$(PDF_FILE)"
# diagramme_uml.*
$(RM) "$(PDF_FILE)"