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-02-28 17:48:11 +01:00

32 lines
772 B
Makefile

NAME = TP1 - Groupe 4
CPP_NAME = C++
PROLOG_NAME = Prolog
TAR = tar --exclude="*AidesCPP" --exclude="*TODO.md" -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