l3.libnazgul/Makefile
2004-02-19 22:17:58 +00:00

52 lines
1.3 KiB
Makefile

### Make file du projet Janat
### HEADER HERE
###
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:
( cd src/ ; \
$(MAKE) doc )
clean:
$(MAKE) clean -C src/
$(MAKE) clean -C test/
@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)"