12 @echo 'Run "make install" to install.'
15 @test -f Makefile.inc || \
16 (echo "Makefile.inc doesn't exist. Please run autogen.sh"; exit 1)
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"
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
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" ; \
45 ./scripts/debian-python2-postinstall-hook.sh $(bindir)
47 .PHONY: all update install