m1.chocobarlite/Makefile

62 lines
1.4 KiB
Makefile
Raw Permalink Normal View History

2009-05-01 08:07:06 +00:00
### Make file du projet CBL
### HEADER HERE
###
JAVAC=javac
JFLAGS=-d ../bin -classpath ../bin
PRJNAME=ChocoBarLite
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
all: subdir
run:
( cd src/ ; \
$(MAKE) run )
subdir:
( cd src/ ; \
$(MAKE) )
doc:
( cd src/ ; \
$(MAKE) doc )
clean:
$(MAKE) clean -C src/
$(MAKE) clean -C doc/rapport/
@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)"
# Creer le fichier jar
jar: all
(cd bin && \
jar cvfm $(PRJNAME).jar manifest . && \
mv $(PRJNAME).jar ../ \
)