9 bindir=$(HOME)/.local/bin
10 datarootdir=$(HOME)/.local/share
11 desktopdir=$(datarootdir)/applications
14 @echo 'Run "make install" to install.'
16 install-check: install-check.c
17 $(CC) $(CFLAGS) -o install-check install-check.c
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"
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
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" ; \
48 .PHONY: all update install