69 lines
1.8 KiB
Makefile
69 lines
1.8 KiB
Makefile
#-------------------------------------------------------------------%
|
|
#
|
|
# LIBNAZGUL : Library
|
|
#
|
|
#-------------------------------------------------------------------%
|
|
#
|
|
# IUP GMI 2, Module de Système. 2003-2004.
|
|
# Cours de J-M. Rifflet.
|
|
#
|
|
#-------------------------------------------------------------------%
|
|
#
|
|
# Projet de :
|
|
# Glenn ROLLAND,
|
|
# Sebastian SCHAWOHL,
|
|
# Rivka ZANA
|
|
#
|
|
# pour plus de détails au sujet du projet, voir le
|
|
# fichier README
|
|
#
|
|
#-------------------------------------------------------------------%
|
|
|
|
PRJNAME=Libnazgul
|
|
GDATE:= $(shell date +"%Y-%m-%d_r%H%M")
|
|
GFILENAME:= $(PRJNAME)-$(GDATE).tar.bz2
|
|
PATH_GFILENAME:= ../$(GFILENAME)
|
|
GFILESIZE:=
|
|
LOCALDIR=$(shell pwd)
|
|
LASTONSERVER = $(shell ssh glenux.ath.cx -l warbrain "ls -rt ~/Projet/Archives/$(PRJNAME)* | tail -n 1")
|
|
#MAILS=warbrain@glenux.ath.cx
|
|
#MAILS=glenuxian@airpost.net rolland@dptmaths.ens-cachan.fr el_shogun@netcourrier.com rolandgl@ufr-info-p7.jussieu.fr
|
|
|
|
all: subdir
|
|
|
|
run:
|
|
( cd src/ ; \
|
|
$(MAKE) run )
|
|
|
|
subdir:
|
|
$(MAKE) -C src/
|
|
$(MAKE) -C test/
|
|
|
|
doc:
|
|
$(MAKE) -C doc/rapport
|
|
|
|
clean:
|
|
$(MAKE) clean -C src/
|
|
$(MAKE) clean -C test/
|
|
$(MAKE) clean -C doc/rapport/
|
|
@rm -f *.class *~
|
|
|
|
package: clean createpackage sendtoarchives
|
|
|
|
#mail: clean createpackage sendpackage sendtoarchives
|
|
|
|
createpackage:
|
|
tar -cjvf $(PATH_GFILENAME) -C ../ $(PRJNAME)
|
|
|
|
sendtoarchives:
|
|
mv $(PATH_GFILENAME) ../Archives
|
|
|
|
#sendpackage:
|
|
# (echo -e "\nCi joint le fichier:\n$(shell du -sh $(PATH_GFILENAME))" \
|
|
# && echo -e "\nPour décompresser:" \
|
|
# && echo -e "\n\ttar -xjvf $(GFILENAME)\n" \
|
|
# && echo -e "\n(n'oubliez pas de supprimer l'ancien répertoire du même nom avant de décompresser)" \
|
|
# && echo -e "\n\nHistorique des modifications :\n" \
|
|
# && cat CHANGELOG ) \
|
|
# | mutt $(MAILS) -a $(PATH_GFILENAME) -s "[$(PRJNAME)] $(GDATE)"
|
|
|