32 lines
772 B
Makefile
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
|