forked from milter-manager/milter-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
144 lines (122 loc) · 3.28 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
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_OPTIONS}
SUBDIRS =
if WITH_BUNDLED_LIBEV
SUBDIRS += \
libev-4.19
endif
SUBDIRS += \
milter \
libmilter \
binding \
module \
src \
tool \
data \
test \
po \
build \
doc \
html \
license \
package \
vendor
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = \
milter-core.pc \
milter-client.pc \
milter-server.pc \
milter-manager.pc \
libmilter.pc
if WITH_RUBY_MILTER
pkgconfig_DATA += \
ruby-milter.pc \
ruby-milter-core.pc \
ruby-milter-client.pc \
ruby-milter-server.pc
endif
EXTRA_DIST = \
autogen.sh \
gpg_uid \
README \
README.ja \
NEWS \
NEWS.ja
OSDN_CREDENTIAL_FILE = $(HOME)/.config/osdn/credential.yml
upload: upload-doc upload-coverage
release: release-osdn
release-github: $(PACKAGE)-$(VERSION).tar.gz.asc
$(CUTTER_SOURCE_PATH)/misc/release-to-github.rb \
--repository=milter-manager/milter-manager \
--tag=$(VERSION) \
--news-file=NEWS \
--asset-file=$(PACKAGE)-$(VERSION).tar.gz \
--asset-file=$(PACKAGE)-$(VERSION).tar.gz.asc \
--access-token-file=$(ACCESS_TOKEN_FILE)
release-osdn: $(PACKAGE)-$(VERSION).tar.gz.asc
$(CUTTER_SOURCE_PATH)/misc/release-to-osdn.rb \
--credential=$(OSDN_CREDENTIAL_FILE) \
--project=$(PACKAGE) \
--new-version=$(VERSION) \
--news-file=NEWS \
--package=$(PACKAGE) \
--asset-file=$(PACKAGE)-$(VERSION).tar.gz \
--asset-file=$(PACKAGE)-$(VERSION).tar.gz.asc
sign-archive: $(PACKAGE)-$(VERSION).tar.gz
gpg --local-user $(GPG_UID) --armor --detach-sign $(PACKAGE)-$(VERSION).tar.gz
upload-doc:
cd html && $(MAKE) $(AM_MAKEFLAGS) upload
cd doc/reference && $(MAKE) $(AM_MAKEFLAGS) upload
upload-coverage: coverage-force
rsync -avz coverage/ $(OSDN_HTDOCS)/coverage/
update-po:
cd $(top_srcdir) && \
(find milter -name '*.c'; \
find module -name '*.c'; \
find tool -name '*.c') | \
sort > po/POTFILES.in
cd po && $(MAKE) $(AM_MAKEFLAGS) update-po
update-files:
cd test/fixtures && $(MAKE) $(AM_MAKEFLAGS) update-files
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) && \
$(CUTTER_SOURCE_PATH)/misc/update-latest-release.rb \
$(PACKAGE) \
$(OLD_RELEASE) $(OLD_RELEASE_DATE) \
$(VERSION) $(NEW_RELEASE_DATE) \
package/rpm/centos/milter-manager.spec.in \
package/debian/changelog \
html/index.html \
html/index.html.ja \
html/blog/tdiary.conf \
doc/reference/header.html \
doc/reference/header-ja.html \
doc/install-to-centos.rd \
doc/install-to-centos.rd.ja \
doc/install-to-freebsd.rd \
doc/install-to-freebsd.rd.ja \
doc/upgrade-on-centos.rd \
doc/upgrade-on-centos.rd.ja \
doc/upgrade-on-freebsd.rd \
doc/upgrade-on-freebsd.rd.ja
tag:
git tag -a "$(VERSION)" -m "released $(VERSION)!!!"
echo-abs-top-srcdir:
@echo $(abs_top_srcdir)
echo-abs-top-builddir:
@echo $(abs_top_builddir)
echo-cutter:
@echo $(CUTTER)
echo-ruby:
@echo $(RUBY)