-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathMakefile.am
152 lines (136 loc) · 3.86 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
ACLOCAL_AMFLAGS = -I acmacros -I m4macros ${ACLOCAL_OPTIONS}
SUBDIRS = \
m4macros \
glib-compatible \
gcutter \
cutter \
cppcutter \
gdkcutter-pixbuf \
soupcutter \
module \
data \
test \
sample \
gst-plugins \
po \
misc \
license \
doc \
html \
vcc
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = \
cutter.pc \
gcutter.pc \
cppcutter.pc \
libcutter.pc
if HAVE_GDK_PIXBUF
pkgconfig_DATA += gdkcutter-pixbuf.pc
endif
if HAVE_LIBSOUP
pkgconfig_DATA += soupcutter.pc
endif
EXTRA_DIST = \
autogen.sh \
config.h.in \
gpg_uid_dsa1024 \
gpg_uid_rsa4096 \
TUTORIAL \
TUTORIAL.ja \
README.ja \
NEWS \
NEWS.ja \
FEATURES \
FEATURES.ja \
USERS \
USERS.ja
upload: upload-doc
release: dist dist-zip release-official release-debian
OSDN_CREDENTIAL_FILE = $${HOME}/.config/osdn/credential.yml
release-official: $(PACKAGE)-$(VERSION).tar.gz.asc $(PACKAGE)-$(VERSION).zip.asc
$(srcdir)/misc/release-to-osdn.rb \
--credential=$(OSDN_CREDENTIAL_FILE) \
--project=$(PACKAGE) \
--new-version=$(VERSION) \
--news-file=$(srcdir)/NEWS \
--package=$(PACKAGE) \
--asset-file=$(PACKAGE)-$(VERSION).tar.gz \
--asset-file=$(PACKAGE)-$(VERSION).tar.gz.asc \
--asset-file=$(PACKAGE)-$(VERSION).zip \
--asset-file=$(PACKAGE)-$(VERSION).zip.asc
release-debian:
rm -rf tmp
mkdir -p tmp
tar xfz $(PACKAGE)-$(VERSION).tar.gz -C tmp
mv tmp/$(PACKAGE)-$(VERSION) tmp/$(PACKAGE)-testing-framework-$(VERSION)
tar cfz tmp/$(PACKAGE)-testing-framework-$(VERSION).tar.gz \
-C tmp \
$(PACKAGE)-testing-framework-$(VERSION)
mkdir -p tmp/archives/debian/
echo "Options +Indexes" > tmp/archives/.htaccess
mv tmp/$(PACKAGE)-testing-framework-$(VERSION).tar.gz \
tmp/archives/debian/
rsync -avz tmp/archives $(OSDN_HTDOCS)/
release-github: dist
cd $(srcdir)/misc && ./release-to-github.rb \
--repository=clear-code/cutter \
--tag=$(VERSION) \
--news-file=NEWS \
--asset-file=$(PACKAGE)-$(VERSION).tar.gz \
--access-token-file=$(ACCESS_TOKEN_FILE)
$(PACKAGE)-$(VERSION).tar.gz.asc: $(PACKAGE)-$(VERSION).tar.gz
gpg --local-user $(GPG_UID_RSA4096) --armor --detach-sign $(PACKAGE)-$(VERSION).tar.gz
$(PACKAGE)-$(VERSION).zip.asc: $(PACKAGE)-$(VERSION).zip
gpg --local-user $(GPG_UID_RSA4096) --armor --detach-sign $(PACKAGE)-$(VERSION).zip
upload-doc:
cd html && $(MAKE) upload
cd doc/reference && $(MAKE) upload
update-po:
cd $(top_srcdir) && \
(find cutter -name '*.c'; \
find gcutter -name '*.c'; \
find cppcutter -name '*.c'; \
find gdkcutter-pixbuf -name '*.c'; \
find soupcutter -name '*.c'; \
find module -name '*.c'; \
find glib-compatible -name '*.c') | \
grep -v cut-marshalers.c | \
sort > po/POTFILES.in
cd po && $(MAKE) $(AM_MAKEFLAGS) update-po
cd doc/reference && $(MAKE) $(AM_MAKEFLAGS) update-po
update-latest-release:
@if test -z "$(OLD_RELEASE)"; then \
echo "\$$(OLD_RELEASE) is missing"; \
exit 1; \
fi
@if test -z "$(OLD_RELEASE_DATE)"; then \
echo "\$$(OLD_RELEASE_DATE) is missing"; \
exit 1; \
fi
@if test -z "$(NEW_RELEASE_DATE)"; then \
echo "\$$(NEW_RELEASE_DATE) is missing"; \
exit 1; \
fi
cd $(top_srcdir) && \
misc/update-latest-release.rb \
$(PACKAGE) \
$(OLD_RELEASE) $(OLD_RELEASE_DATE) \
$(VERSION) $(NEW_RELEASE_DATE) \
packages/rpm/centos/cutter.spec.in \
packages/debian/changelog \
html/index.html \
html/index.html.ja \
doc/reference/header.html \
doc/reference/header-ja.html \
doc/install-to-cygwin.rd \
doc/install-to-cygwin.rd.ja \
doc/install-to-freebsd.rd \
doc/install-to-freebsd.rd.ja \
doc/install-to-others.rd \
doc/install-to-others.rd.ja \
doc/install-to-solaris.rd \
doc/install-to-solaris.rd.ja
tag:
cd $(top_srcdir) && \
git tag $(VERSION) -a -m 'released $(VERSION)!!!' && \
git push --tags