# ex:set tabstop=4: # ex:set noexpandtab: EE = echo `date` --- E = @$(EE) SRC=. BUILD=./build/build TOOLS=./tools APP=./Midigram.app all : rel build_dirs : $(E) making $@ @mkdir -p $BUILD bump_build_number : $(E) Bumping build number $(TOOLS)/bump_version.pl $(SRC)/version.h k_version_build_number app : $(E) making $@ @make -f Makefile.qmake @mkdir -p $(APP)/sources @cp -f $(SRC)/*.cpp $(SRC)/*.h $(APP)/sources rel : build_dirs bump_build_number app \ ver=`cat $(SRC)/version.h | $(TOOLS)/spew_version.pl` ;\ dat=`cat $(SRC)/version.h | $(TOOLS)/spew_version.pl 1` ;\ rel=$(BUILD)/Midigram_$$ver ;\ mkdir -p $$rel ;\ cp -r $(APP) $$rel ;\ export PERL5LIB=$(TOOLS) ;\ v=`$(TOOLS)/spew_version.pl 2 < $(SRC)/version.h` ;\ b=`$(TOOLS)/spew_version.pl 3 < $(SRC)/version.h` ;\ d=`$(TOOLS)/spew_version.pl 1 < $(SRC)/version.h` ;\ $(TOOLS)/munge_and_move.pl ./websrc/readme.txt $$rel/readme.txt v=$$v b=$$b d=$$d ;\ relname=`basename $$rel` ;\ hdiutil create -fs HFS+ -volname $$relname -srcfolder $$rel $$rel.dmg ;\ site=$${relname}_site ;\ mkdir -p $$site ;\ $(TOOLS)/munge_and_move.pl ./websrc/index.html $$site/index.html v=$$v b=$$b d=$$d macdownload=$$relname.dmg;\ cp $$rel.dmg $$site ;\ echo Done with site $$site ;\