-
-
Notifications
You must be signed in to change notification settings - Fork 80
/
Makefile.am
138 lines (123 loc) · 4.41 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
EXTRA_DIST = autogen.sh nvc.1 README.md NEWS.md THANKS.md
ACLOCAL_AMFLAGS = -I m4
man_MANS = nvc.1
AM_CPPFLAGS = -I$(top_srcdir)/thirdparty -I$(top_srcdir)/src
AM_CFLAGS = -Wall $(EXTRA_CFLAGS) $(LTO_FLAG)
AM_CXXFLAGS = -Wall $(EXTRA_CFLAGS) $(LTO_FLAG)
AM_LDFLAGS = $(EXTRA_LDFLAGS) $(LLVM_LDFLAGS)
AM_YFLAGS = --locations $(EXTRA_YFLAGS)
AM_LFLAGS = -o lex.yy.c
AM_CC = $(PTHREAD_CC)
AM_CFLAGS += $(PTHREAD_CFLAGS)
AM_LDFLAGS += $(PTHREAD_LIBS)
AM_CFLAGS += \
$(check_CFLAGS) \
$(libdw_CFLAGS) \
$(libffi_CFLAGS) \
$(zlib_CFLAGS) \
$(capstone_CFLAGS) \
$(LLVM_CFLAGS) \
$(libzstd_CFLAGS) \
$(TCL_CFLAGS)
bin_PROGRAMS =
noinst_LIBRARIES =
include_HEADERS =
check_PROGRAMS =
check_LIBRARIES =
noinst_PROGRAMS =
pkgdata_DATA =
pkglibexec_PROGRAMS =
pkglibexec_SCRIPTS =
EXTRA_PROGRAMS =
BUILT_SOURCES =
CLEANFILES =
DISTCLEANFILES =
BOOTSTRAPLIBS =
LIBDIRS =
lib_LIBRARIES =
pkglib_LIBRARIES =
include thirdparty/Makemodule.am
include src/Makemodule.am
include src/cov/Makemodule.am
include src/psl/Makemodule.am
include src/sdf/Makemodule.am
include src/rt/Makemodule.am
include src/jit/Makemodule.am
include src/vhpi/Makemodule.am
include src/vlog/Makemodule.am
include test/Makemodule.am
include test/vhpi/Makemodule.am
include lib/Makemodule.am
include lib/std/Makemodule.am
include lib/std.08/Makemodule.am
include lib/std.19/Makemodule.am
include lib/nvc/Makemodule.am
include lib/nvc.08/Makemodule.am
include lib/nvc.19/Makemodule.am
include lib/ieee/Makemodule.am
include lib/ieee.08/Makemodule.am
include lib/ieee.19/Makemodule.am
include lib/vital/Makemodule.am
include lib/synopsys/Makemodule.am
include contrib/Makemodule.am
include contrib/gui/Makemodule.am
include contrib/msi/Makemodule.am
clean-local: clean-libs
rm -f src/vlog/vlog-parse.c
-test ! -d logs || rm -r logs
if MAINTAINER_MODE
compile-commands:
$(MAKE) -C $(top_builddir) clean
bear -- $(MAKE) -j$$(nproc) -C $(top_builddir) $(bin_PROGRAMS) \
$(check_PROGRAMS) $(EXTRA_PROGRAMS) $(pkglibexec_PROGRAMS)
release: update-test-dist
echo $(PACKAGE_VERSION) | grep -E "^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$$"
$(AM_V_GEN)( \
v=$(PACKAGE_VERSION); d=$$(date '+%Y-%m-%d'); \
b=$$(echo $(PACKAGE_VERSION) | sed 's/.[0-9]$$//'); \
n=$$(date '+%-d'); l=$$(date '+%B %Y'); \
case $$n in \
1?) n=$${n}th ;; \
*1) n=$${n}st ;; \
*2) n=$${n}nd ;; \
*3) n=$${n}rd ;; \
*) n=$${n}th ;; \
esac; \
last=$$(awk '/## Version/ { print($$3); exit }' $(top_srcdir)/NEWS.md); \
sed -i "s/\(Unreleased changes\)/\1\n\n## Version $$v - $$d/" $(top_srcdir)/NEWS.md; \
sed -i "s/\bmaster\b/$$b/" $(top_srcdir)/www/features.html.in; \
sed -i -e "/define(__version,/cdefine(__version, \`$$v')dnl" \
-e "/define(__release_date,/cdefine(__release_date, \`$$n $$l')dnl" \
-e "/define(__release_date_short,/cdefine(__release_date_short, \`$$d')dnl" \
$(top_srcdir)/www/defs.m4; \
sed -i 's/'$$last'/'$$v'/g' $(top_srcdir)/README.md; \
$(MAKE) -C $(top_builddir) distcheck; \
gpg -b $(top_builddir)/$(PACKAGE)-$(VERSION).tar.gz \
)
sync-branch:
last=$$(awk '/## Version/ { print($$3); exit }' $(top_srcdir)/NEWS.md); \
branch=origin/v$$(echo $$last | sed 's/.[0-9]$$//')-branch; \
echo "last version was $$last, branch $$branch"; \
git show $$branch:NEWS.md >/tmp/NEWS.md; \
new=$$(awk '/## Version/ { print($$3); exit }' /tmp/NEWS.md); \
echo "new version was $$new"; \
awk '/Version '$$last'/ { exit; } /Version/ { x=1 } x==1,/./ { print($$0); }' \
/tmp/NEWS.md > /tmp/trimmed.md; \
sed -i -e '/Version/,$$ b;' -e '/^$$/ r /tmp/trimmed.md' $(top_srcdir)/NEWS.md; \
git checkout $$branch $(top_srcdir)/www/defs.m4; \
sed -i 's/'$$last'/'$$new'/g' $(top_srcdir)/README.md
upload-artifacts:
tag=$$(git describe --tags $$(git rev-list --tags --max-count=1)) && \
gh release upload $$tag $(top_builddir)/$(PACKAGE)-$${tag/r/}.tar.gz{,.sig} && \
scp $(top_builddir)/$(PACKAGE)-$${tag/r/}.tar.gz{,.sig} vds:/sites/nick/files && \
run_id=$$(gh run list -w "Build MSYS2 and Ubuntu packages" \
-L 1 --json headBranch,databaseId \
--jq '.[0] | select(.headBranch == "'$$tag'").databaseId') && \
echo "Run ID : $$run_id" && \
rm -rf /tmp/artifacts && \
mkdir -p /tmp/artifacts && \
gh run download $$run_id --dir /tmp/artifacts && \
find /tmp/artifacts -type f -print -exec gh release upload $$tag \{\} \;
endif # MAINTAINER_MODE
.PHONY: cov-reset cov-report compile-commands
.PHONY: release sync-branch upload-artifacts