From 51e2d72c322d8aee6c9bcc6dfc2941abd443fb12 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Thu, 14 Jun 2012 19:54:16 +0000 Subject: Add a bug-report command This generates logs that will be useful for debugging. --- (limited to 'Makefile') diff --git a/Makefile b/Makefile index d3f1a7b..9f26760 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +TIMESTAMP := $(shell date +%Y%m%d-%H%M%S) +LOGFILE = $(CURDIR)/logs/build-$(TIMESTAMP).log SCRIPTS = $(CURDIR)/scripts JHBUILD = $(CURDIR)/build/bin/jhbuild -f $(SCRIPTS)/jhbuildrc @@ -6,7 +8,7 @@ submodules: git submodule update check-system: - $(SCRIPTS)/check-system + script -ae -c "$(SCRIPTS)/check-system" $(LOGFILE) install-jhbuild: submodules check-system cd $(SCRIPTS)/jhbuild ; \ @@ -14,19 +16,22 @@ install-jhbuild: submodules check-system make ; make install build-activities: submodules - $(JHBUILD) run $(SCRIPTS)/build-activity terminal + $(JHBUILD) run $(SCRIPTS)/build-activity terminal | tee -a $(LOGFILE) build-glucose: install-jhbuild check-system - $(JHBUILD) build + script -ae -c "$(JHBUILD) build" $(LOGFILE) build: build-glucose build-activities build-%: - $(JHBUILD) buildone $* + script -ae -c "$(JHBUILD) buildone $*" $(LOGFILE) run: xinit $(SCRIPTS)/xinitrc -- :2 +bug-report: + @$(SCRIPTS)/bug-report + clean: - rm -rf source - rm -rf build + rm -rf source build + rm -f logs/*.log all-logs.tar.bz2 -- cgit v0.9.1