-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
47 lines (40 loc) · 1.35 KB
/
Makefile
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
include extra.mk
SUBDIRS = src utils tests
DISTCLEAN = Info.plist \
aclocal.m4 \
autom4te.cache \
buildsys.mk \
config.h \
config.log \
config.status \
extra.mk
include buildsys.mk
.PHONY: check docs release
utils tests: src
check: tests
${MAKE} -C tests -s run
docs:
rm -fr docs
doxygen >/dev/null
release: docs
echo "Generating tarball for version ${PACKAGE_VERSION}..."
rm -fr objfw-${PACKAGE_VERSION} objfw-${PACKAGE_VERSION}.tar \
objfw-${PACKAGE_VERSION}.tar.gz
fossil tarball --name objfw-${PACKAGE_VERSION} current - \
--exclude '.fossil-settings*,.github*' | ofarc -ttgz -xq -
cp configure config.h.in objfw-${PACKAGE_VERSION}/
ofarc -cq objfw-${PACKAGE_VERSION}.tar objfw-${PACKAGE_VERSION}
rm -fr objfw-${PACKAGE_VERSION}
gzip -9 objfw-${PACKAGE_VERSION}.tar
rm -f objfw-${PACKAGE_VERSION}.tar
gpg -b objfw-${PACKAGE_VERSION}.tar.gz || true
rm -fr objfw-docs-${PACKAGE_VERSION} objfw-docs-${PACKAGE_VERSION}.tar \
objfw-docs-${PACKAGE_VERSION}.tar.gz
mv docs objfw-docs-${PACKAGE_VERSION}
echo "Generating docs tarball for version ${PACKAGE_VERSION}..."
ofarc -cq objfw-docs-${PACKAGE_VERSION}.tar \
objfw-docs-${PACKAGE_VERSION}
rm -fr objfw-docs-${PACKAGE_VERSION}
gzip -9 objfw-docs-${PACKAGE_VERSION}.tar
rm -f objfw-docs-${PACKAGE_VERSION}.tar
gpg -b objfw-docs-${PACKAGE_VERSION}.tar.gz || true