added dependencies of evolution. (GNOME bug 617099)
[jhbuild.git] / Makefile.plain
blobaaff7ca4a5398fab6575ad31b35646f76f466b02
1 PACKAGE = jhbuild
2 VERSION = 0.1
4 CC = gcc
5 CFLAGS = -Wall -O2
7 MAKE ?= make
9 bindir=$(HOME)/.local/bin
10 datarootdir=$(HOME)/.local/share
11 desktopdir=$(datarootdir)/applications
13 all: install-check
14         @echo 'Run "make install" to install.'
16 install-check: install-check.c
17         $(CC) $(CFLAGS) -o install-check install-check.c
19 update:
20         git pull --rebase
21         @if [ "x$(DISABLE_GETTEXT)" = x ]; then (cd po && $(MAKE) -f Makefile.plain); fi
23 install: install-check
24         @if [ "x$(DISABLE_GETTEXT)" = x ]; then (cd po && $(MAKE) -f Makefile.plain install); fi
25         @echo "Creating $(bindir)/jhbuild"
26         @mkdir -p $(bindir)
27         @sed -e "s,@jhbuilddir@,`pwd`,g" \
28                 -e "s,USE_CHECKOUT_SRC = False,USE_CHECKOUT_SRC = True," < \
29                 scripts/jhbuild.in > $(bindir)/jhbuild
30         @chmod a+x $(bindir)/jhbuild
32         @echo "Creating $(desktopdir)/jhbuild.desktop"
33         @mkdir -p $(desktopdir)
34         @sed "s,^_,,g;s,^Exec=.*$$,Exec=$(bindir)/jhbuild gui,;s,^X-GNOME-Bugzilla-Version=.*$$,," \
35                 < jhbuild.desktop.in.in > $(desktopdir)/jhbuild.desktop
37         @[ -f $(HOME)/.jhbuildrc ]||echo "Don't forget to create ~/.jhbuildrc"
38         install -m755 install-check $(bindir)/install-check
40         # if ~/bin/jbuild exists, it is most likely an old version, and it will
41         # not work; so rename it and install a symlink to the new version
42         # instead.
43         @if [ -e "$(HOME)/bin/jhbuild" ] && [ ! $(bindir) -ef $(HOME)/bin ]; then \
44                 mv "$(HOME)/bin/jhbuild" "$(HOME)/bin/jhbuild.old" ; \
45                 ln -s $(bindir)/jhbuild "$(HOME)/bin/jhbuild" ; \
46         fi
48 .PHONY: all update install