forked from mono/taglib-sharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
76 lines (67 loc) · 2.03 KB
/
Makefile.am
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
SUBDIRS = \
src \
examples \
docs
if !IN_DIST
SUBDIRS += tests
endif
DIST_SUBDIRS = \
src \
examples \
docs
pkgconfig_in_files = taglib-sharp.pc.in
pkgconfigdir = $(datadir)/pkgconfig
pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=.pc)
EXTRA_DIST = \
$(pkgconfig_in_files) \
taglib-sharp.snk \
taglib-sharp.sln
DISTCLEANFILES = taglib-sharp.pc
MAINTAINERCLEANFILES = \
compile \
INSTALL \
config.h.in \
aclocal.m4 \
ltmain.sh \
Makefile.in \
depcomp \
missing \
install-sh \
configure \
config.sub \
config.guess \
mkinstalldirs
if !IN_DIST
test:
cd tests; make test; cd ..;
endif
distwin: all
mkdir -p $(srcdir)/$(WINDIR)
cp $(srcdir)/NEWS $(srcdir)/$(WINDIR)/NEWS.txt
cp $(srcdir)/ChangeLog $(srcdir)/$(WINDIR)/ChangeLog.txt
cp $(srcdir)/COPYING $(srcdir)/$(WINDIR)/COPYING.txt
cp $(srcdir)/README $(srcdir)/$(WINDIR)/README.txt
cp $(srcdir)/AUTHORS $(srcdir)/$(WINDIR)/AUTHORS.txt
if [ -e $(srcdir)/windows-files ]; \
then cp -r $(srcdir)/windows-files/* $(srcdir)/$(WINDIR); \
fi
cd $(srcdir)/src && make distwin
zip -9 -r $(srcdir)/$(WINDIR).zip $(srcdir)/$(WINDIR)
rm -rf $(srcdir)/$(WINDIR)
UPLOAD_HOST = "$$BANSHEE_USER@banshee.fm"
UPLOAD_PATH = "web/download.banshee.fm/taglib-sharp"
push-release: distcheck distwin
[[ -z "$$BANSHEE_USER" ]] && { echo "Set BANSHEE_USER"; exit 1; } || true
[[ -z "$$MONO_USER" ]] && { echo "Set MONO_USER"; exit 1; } || true
mkdir -p release
mv $(WINDIR).zip release
mv $(PACKAGE)-$(VERSION).tar.* release
cp ChangeLog release/$(PACKAGE)-$(VERSION).changes
cp NEWS release/$(PACKAGE)-$(VERSION).news
pushd release; sha256sum * > $(PACKAGE)-$(VERSION).sha256sum; popd
scp -r release $(UPLOAD_HOST):$(UPLOAD_PATH)/$(VERSION)
rm -rf release
ssh $(UPLOAD_HOST) rm -f $(UPLOAD_PATH)/LATEST-IS\*
ssh $(UPLOAD_HOST) touch $(UPLOAD_PATH)/LATEST-IS-$(VERSION)
git tag -a -m "Tag for taglib-sharp release ${VERSION}" taglib-sharp-${VERSION} || bail "Could not create tag"
git push origin taglib-sharp-${VERSION} || bail "Failed to push tag to remote"