Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 9f26760d32e05b481c6b19641fbeaa9fa17a1da5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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

submodules:
	git submodule init
	git submodule update

check-system:
	script -ae -c "$(SCRIPTS)/check-system" $(LOGFILE)

install-jhbuild: submodules check-system
	cd $(SCRIPTS)/jhbuild ; \
	./autogen.sh --prefix=$(CURDIR)/build ; \
	make ; make install

build-activities: submodules
	$(JHBUILD) run $(SCRIPTS)/build-activity terminal | tee -a $(LOGFILE)

build-glucose: install-jhbuild check-system
	script -ae -c "$(JHBUILD) build" $(LOGFILE)

build: build-glucose build-activities

build-%:
	script -ae -c "$(JHBUILD) buildone $*" $(LOGFILE)

run:
	xinit $(SCRIPTS)/xinitrc -- :2

bug-report:
	@$(SCRIPTS)/bug-report

clean:
	rm -rf source build
	rm -f logs/*.log all-logs.tar.bz2