forked from GNOME/jhbuild
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.windows
37 lines (28 loc) · 923 Bytes
/
Makefile.windows
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
PACKAGE = jhbuild
VERSION = 0.1
CC = gcc
CFLAGS = -Wall -O2
MAKE ?= make
-include Makefile.inc
all: include-check
@echo 'Run "make install" to install.'
include-check:
@test -f Makefile.inc || \
(echo "Makefile.inc doesn't exist. Please run autogen.sh"; exit 1)
update:
git pull --rebase
install: include-check
@echo "Creating $(bindir)/jhbuild"
@mkdir -p $(bindir)
@sed -e "s,@jhbuilddir@,`pwd -W`,g" \
-e "s,USE_CHECKOUT_SRC = False,USE_CHECKOUT_SRC = True," < \
scripts/jhbuild.in > $(bindir)/jhbuild
@chmod a+x $(bindir)/jhbuild
# if ~/bin/jbuild exists, it is most likely an old version, and it will
# not work; so rename it and install a symlink to the new version
# instead.
@if [ -e "$(HOME)/bin/jhbuild" ] && [ ! $(bindir) -ef $(HOME)/bin ]; then \
mv "$(HOME)/bin/jhbuild" "$(HOME)/bin/jhbuild.old" ; \
ln -s $(bindir)/jhbuild "$(HOME)/bin/jhbuild" ; \
fi
.PHONY: all update install