core-deps-latest: Pull gtkmm-3 from the gtkmm-3-24 branch
[jhbuild.git] / Makefile.plain
blob163078167ebff205fb13648497396010eaf4497a
1 PACKAGE = jhbuild
2 VERSION = 0.1
4 CC ?= cc
5 CFLAGS ?= -Wall -O2
7 MAKE ?= make
9 -include Makefile.inc
11 all: include-check
12         @echo 'Run "make install" to install.'
14 include-check:
15         @test -f Makefile.inc || \
16         (echo "Makefile.inc doesn't exist. Please run autogen.sh"; exit 1)
18 update:
19         git pull --rebase
20         @if [ "x$(DISABLE_GETTEXT)" = x ]; then (cd po && $(MAKE) -f Makefile.plain); fi
22 install: include-check
23         @if [ "x$(DISABLE_GETTEXT)" = x ]; then (cd po && $(MAKE) -f Makefile.plain install); fi
24         @echo "Creating $(bindir)/jhbuild"
25         @mkdir -p $(bindir)
26         @sed -e "s,@jhbuilddir@,`pwd`,g" \
27                 -e "s,USE_CHECKOUT_SRC = False,USE_CHECKOUT_SRC = True," < \
28                 scripts/jhbuild.in > $(bindir)/jhbuild
29         @chmod a+x $(bindir)/jhbuild
31         @echo "Creating $(desktopdir)/jhbuild.desktop"
32         @mkdir -p $(desktopdir)
33         @sed "s,^_,,g;s,^Exec=.*$$,Exec=$(bindir)/jhbuild gui,;s,^X-GNOME-Bugzilla-Version=.*$$,," \
34                 < jhbuild.desktop.in.in > $(desktopdir)/jhbuild.desktop
36 # if ~/bin/jbuild exists, it is most likely an old version, and it will
37 # not work; so rename it and install a symlink to the new version
38 # instead.
39 # (This comment is intentionally not indented, otherwise make prints it)
40         @if [ -e "$(HOME)/bin/jhbuild" ] && [ ! $(bindir) -ef $(HOME)/bin ]; then \
41                 mv "$(HOME)/bin/jhbuild" "$(HOME)/bin/jhbuild.old" ; \
42                 ln -s $(bindir)/jhbuild "$(HOME)/bin/jhbuild" ; \
43         fi
45         ./scripts/debian-python2-postinstall-hook.sh $(bindir)
47 .PHONY: all update install