l3.libnazgul/Makefile
2004-02-16 21:25:11 +00:00

54 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
WGET=wget -P lib/
all: subdir
run:
( cd src/ ; \
$(MAKE) run )
subdir:
( cd src/ ; \
$(MAKE) )
doc:
( cd src/ ; \
$(MAKE) doc )
clean:
$(MAKE) clean -C src/
@rm -f *.class *~
package: clean createpackage sendtoarchives
#mail: clean createpackage sendpackage sendtoarchives
createpackage:
mv lib ../lib$(GDATE)
tar -cjvf $(PATH_GFILENAME) -C ../ $(PRJNAME)
mv ../lib$(GDATE) lib
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)"