forked from trusteddomainproject/OpenARC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
46 lines (34 loc) · 1.6 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
# Copyright (c) 2010-2014, 2016, 2017, The Trusted Domain Project.
# All rights reserved.
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = libopenarc contrib docs openarc
dist_doc_DATA = LICENSE LICENSE.Sendmail RELEASE_NOTES
dist_noinst_SCRIPTS = libtool
DISTCLEANFILES = openarc-@[email protected]
# TODO: get configure.ac to generate --enable-{feature} for all
# non-experimental features and substitute it here e.g @SUPPORTED_FEATURES@.
# Perhaps all features would enable a more comprehensive test coverage map
# though.
DISTCHECK_CONFIGURE_FLAGS=--with-openssl=/usr/local
$(DIST_ARCHIVES): distcheck
$(DIST_ARCHIVES).md5: $(DIST_ARCHIVES)
md5 $? > $@ || md5sum $? > $@
$(DIST_ARCHIVES).sha1: $(DIST_ARCHIVES)
sha1 $? > $@ || sha1sum $? > $@
$(DIST_ARCHIVES).asc: $(DIST_ARCHIVES)
gpg -a -u [email protected] --detach-sign $?
push: $(DIST_ARCHIVES) $(DIST_ARCHIVES).sha1 $(DIST_ARCHIVES).md5 $(DIST_ARCHIVES).asc
@echo "Are you sure you want to tag and release $(DIST_ARCHIVES)? (y/n)"
@read confirm && [ $$confirm = 'y' ]
git tag rel-openarc-`echo $(VERSION) | sed 's/\./-/g'`
git push --tags
dist-hook:
[ -f $(distdir)/libopenarc/arc.h ] && rm -f $(distdir)/libopenarc/arc.h
sed -e '/OPENARC_LIB_VERSION/s/0x[0-9]*/0x@HEX_VERSION@/' < $(srcdir)/libopenarc/arc.h > $(distdir)/libopenarc/arc.h
echo "looking to see if @VERSION@ is in the RELEASE_NOTES"
fgrep @VERSION@ $(srcdir)/RELEASE_NOTES
sed -e 's|\(@VERSION@[ \t]*\)[0-9?]\{4\}\(/[0-9?]\{2\}\)\{2\}|\1'`date +%Y/%m/%d`'|' < $(srcdir)/RELEASE_NOTES > $(distdir)/RELEASE_NOTES
rpm: dist-gzip
rpmbuild -ta $(distdir).tar.gz
.PHONY: push