forked from rafalrusin/xmlbeansxx
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.svn
More file actions
30 lines (22 loc) · 742 Bytes
/
Copy pathMakefile.svn
File metadata and controls
30 lines (22 loc) · 742 Bytes
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
.PHONY: all update configure build install release
all: build
update:
if svn update | grep Updated || [ ! -f update-stamp ]; then touch update-stamp; fi
update-stamp: update
configure:
make -f Makefile.svn configure-stamp
configure-stamp: update-stamp
./bootstrap && ./configure
touch configure-stamp
build: configure
make -j4
touch build-stamp
#install: configure
# make -j4 install
# touch install-stamp
tag: build
TAG=`grep AC_INIT configure.ac | sed -e 's/^[^,]*, *\([^, ]*\).*$$/\1/'`;\
echo $$TAG; \
TAG_URL=`svn info | grep URL | sed -e "s/URL: //;s/trunk/tags/"`/$$TAG;\
echo $$TAG_URL; \
if ! svn ls $$TAG_URL 2>&1 > /dev/null; then svn cp . $$TAG_URL -m "Tagged version $$TAG"; else echo "Tag already exists"; fi