This repository has been archived on 2023-04-18. You can view files and clone it, but cannot push or open issues or pull requests.
iaj/TP1/Makefile
2023-03-19 23:18:56 +01:00

35 lines
857 B
Makefile

NAME = TP1 - Groupe 4
CPP_NAME = C++
PROLOG_NAME = Prolog
EXCLUSIONS = *AidesCPP *.md
$(foreach i, $(EXCLUSIONS), $(eval TAR_EXCLUDE = $(TAR_EXCLUDE) --exclude="$(i)"))
TAR = tar $(TAR_EXCLUDE) -czf
CP = cp -r
RM = rm -r
RAPPORT = Rapport/rapport.pdf
CPP = C-Cpp/
TESTS = Screens-*
PROLOG = Prolog/
tgz-all:
echo $(CPP) $(PROLOG) | xargs -n 1 $(CP) $(TESTS)
-$(MAKE) -C $(CPP) clean 2> /dev/null
$(TAR) "$(NAME).tar.gz" $(RAPPORT) $(CPP) $(PROLOG)
$(RM) $(CPP)$(TESTS) $(PROLOG)$(TESTS)
tgz-cpp:
$(CP) $(TESTS) $(CPP)
-$(MAKE) -C $(CPP) clean 2> /dev/null
$(TAR) "$(NAME) - $(CPP_NAME).tar.gz" $(RAPPORT) $(CPP)
$(RM) $(CPP)$(TESTS)
tgz-prolog:
$(CP) $(TESTS) $(PROLOG)
$(TAR) "$(NAME) - $(PROLOG_NAME).tar.gz" $(RAPPORT) $(PROLOG)
$(RM) $(PROLOG)$(TESTS)
clean:
$(RM) *.tar.gz