# build in the current working directory CORR_FILE = cernlib.2005.corr.2010.08.01.tgz INSTALL_FILE = cernlib.2005.install.2010.08.01.tgz ALL_FILE = cernlib-2005-all-new.tgz DIST_FILES = $(ALL_FILE) $(CORR_FILE) $(INSTALL_FILE) all: mkdir .error_check_done mkdir: mkdir -p cern $(DIST_FILES): wget http://www-zeuthen.desy.de/linear_collider/cernlib/new/$@ .unpack_done: $(DIST_FILES) cd cern ; rm -rf * cd cern ; tar zxvf ../$(ALL_FILE) cd cern ; cp -v ../$(CORR_FILE) cernlib.2005.corr.tgz cd cern ; tar zxvf ../$(INSTALL_FILE) echo unpacking done > .unpack_done .build_done: .unpack_done cd cern ; ./Install_cernlib echo build done > .build_done .error_check_done: .build_done grep Error cern/2005/build/log/make.???? ; if [ $$? -eq 0 ] ; then exit 1 ; else exit 0 ; fi echo error check done > .error_check_done