forked from cmakified/cgicc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
65 lines (51 loc) · 1.47 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
## $Id: Makefile.am,v 1.42 2009/11/14 20:58:45 sebdiaz Exp $
AUTOMAKE_OPTIONS = check-news dist-bzip2
if DEMOS
DEMO = demo contrib
else
DEMO =
endif
ACLOCAL_AMFLAGS=
SUBDIRS = cgicc doc support $(DEMO)
CLEANFILES = *~
MAINTAINERCLEANFILES = aclocal.m4 cgicc-*.tar.*
EXTRA_DIST = BUGS README.WIN COPYING.DOC example win
aclocaldir = $(datadir)/aclocal
aclocal_DATA = example/cgicc.m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = cgicc.pc
dist-hook:
cd $(distdir)/example && (make distclean || exit 0)
rm -rf $(distdir)/example/CVS
rm -f $(distdir)/example/autogen
rm -rf $(distdir)/win/CVS
## Tag sources before making distribution, but don't make a
## distribution if checks fail.
CVS = cvs
cvs-dist: distcheck
cd $(srcdir) && \
$(CVS) -q tag `echo "release-$(VERSION)" | sed 's/\./-/g'`
$(MAKE) dist
## Generate detached signature files (binary and ascii-armored)
## as well as directive files for GNU server ftp upload
GPG = gpg
gpg-dist:
for file in $(DIST_ARCHIVES); do \
$(GPG) -b $$file; \
$(GPG) -ba $$file; \
echo "directory: cgicc" > $$file.directive; \
$(GPG) --clearsign $$file.directive
done
## Generate md5 checksum files
MD5 = md5sum
md5-dist:
for file in $(DIST_ARCHIVES); do \
$(MD5) $$file > $$file.md5; \
done
## Upload triplet files to GNU ftp server
FTP = ftp
FTP_URL = ftp://ftp-upload.gnu.org/incoming/ftp
ftp-release: gpg-dist
for file in $(DIST_ARCHIVES); do \
$(FTP) -a -u $(FTP_URL) $$file $$file.sig $$file.directive.asc
done