1997-08-18 18:11:04 +00:00
|
|
|
# Maintainer-only makefile segment. This contains things that are relevant
|
2013-01-13 00:31:13 +00:00
|
|
|
# only if you have the full copy of the GNU make sources from the Git
|
1999-03-30 06:19:17 +00:00
|
|
|
# tree, not a dist copy.
|
2004-01-21 06:32:59 +00:00
|
|
|
|
2013-10-13 14:54:32 +00:00
|
|
|
BUGLIST := bug-make@gnu.org
|
|
|
|
|
|
|
|
# These are related to my personal setup.
|
2013-10-09 05:54:24 +00:00
|
|
|
GPG_FINGERPRINT := 6338B6D4
|
2013-10-19 16:09:13 +00:00
|
|
|
|
|
|
|
# SRCROOTDIR is just a handy location to keep source files in
|
|
|
|
SRCROOTDIR ?= $(HOME)/src
|
|
|
|
|
|
|
|
# Where the gnulib project has been locally cloned
|
|
|
|
GNULIBDIR ?= $(SRCROOTDIR)/gnulib
|
|
|
|
|
|
|
|
# Where to put the CVS checkout of the GNU web repository
|
|
|
|
GNUWEBDIR ?= $(SRCROOTDIR)/gnu-www
|
|
|
|
|
|
|
|
# Where to put the CVS checkout of the GNU make web repository
|
|
|
|
MAKEWEBDIR ?= $(SRCROOTDIR)/make/make-web
|
2013-10-09 05:54:24 +00:00
|
|
|
|
2004-01-21 06:32:59 +00:00
|
|
|
# We like mondo-warnings!
|
2014-04-25 21:10:47 +00:00
|
|
|
AM_CFLAGS += -Wall -Wwrite-strings -Wextra -Wdeclaration-after-statement -Wshadow -Wpointer-arith -Wbad-function-cast
|
2006-04-09 22:09:24 +00:00
|
|
|
|
2011-02-21 07:30:11 +00:00
|
|
|
MAKE_MAINTAINER_MODE := -DMAKE_MAINTAINER_MODE
|
|
|
|
AM_CPPFLAGS += $(MAKE_MAINTAINER_MODE)
|
|
|
|
|
2006-04-09 22:09:24 +00:00
|
|
|
# I want this one but I have to wait for the const cleanup!
|
|
|
|
# -Wwrite-strings
|
1997-08-18 18:11:04 +00:00
|
|
|
|
|
|
|
# Find the glob source files... this might be dangerous, but we're maintainers!
|
|
|
|
globsrc := $(wildcard glob/*.c)
|
1997-08-27 20:30:54 +00:00
|
|
|
globhdr := $(wildcard glob/*.h)
|
|
|
|
|
2003-05-02 01:44:59 +00:00
|
|
|
TEMPLATES = README README.DOS README.W32 README.OS2 \
|
1999-08-31 17:02:31 +00:00
|
|
|
config.ami configh.dos config.h.W32 config.h-vms
|
1998-07-30 20:54:47 +00:00
|
|
|
MTEMPLATES = Makefile.DOS SMakefile
|
1997-08-18 18:11:04 +00:00
|
|
|
|
2005-10-26 16:06:30 +00:00
|
|
|
# These are built as a side-effect of the dist rule
|
|
|
|
#all-am: $(TEMPLATES) $(MTEMPLATES) build.sh.in
|
2002-07-14 02:57:04 +00:00
|
|
|
|
1997-08-18 18:11:04 +00:00
|
|
|
# General rule for turning a .template into a regular file.
|
|
|
|
#
|
1999-08-22 17:50:57 +00:00
|
|
|
$(TEMPLATES) : % : %.template Makefile
|
1997-08-27 20:30:54 +00:00
|
|
|
rm -f $@
|
1999-08-12 23:16:42 +00:00
|
|
|
sed -e 's@%VERSION%@$(VERSION)@g' \
|
|
|
|
-e 's@%PACKAGE%@$(PACKAGE)@g' \
|
1997-08-27 20:30:54 +00:00
|
|
|
$< > $@
|
|
|
|
chmod a-w $@
|
|
|
|
|
1998-07-30 20:54:47 +00:00
|
|
|
# Construct Makefiles by adding on dependencies, etc.
|
1997-08-27 20:30:54 +00:00
|
|
|
#
|
1999-08-22 17:50:57 +00:00
|
|
|
$(MTEMPLATES) : % : %.template .dep_segment Makefile
|
1997-08-18 18:11:04 +00:00
|
|
|
rm -f $@
|
1999-08-12 23:16:42 +00:00
|
|
|
sed -e 's@%VERSION%@$(VERSION)@g' \
|
|
|
|
-e 's@%PROGRAMS%@$(bin_PROGRAMS)@g' \
|
|
|
|
-e 's@%SOURCES%@$(filter-out remote-%,$(make_SOURCES)) remote-$$(REMOTE).c@g' \
|
|
|
|
-e 's@%OBJECTS%@$(filter-out remote-%,$(make_OBJECTS)) remote-$$(REMOTE).o@g' \
|
|
|
|
-e 's@%GLOB_SOURCES%@$(globsrc) $(globhdr)@g' \
|
|
|
|
-e 's@%GLOB_OBJECTS%@$(globsrc:glob/%.c=%.o)@g' \
|
1997-08-27 20:30:54 +00:00
|
|
|
$< > $@
|
1998-07-30 20:54:47 +00:00
|
|
|
echo >>$@; echo '# --------------- DEPENDENCIES' >>$@; echo '#' >>$@; \
|
|
|
|
cat $(word 2,$^) >>$@
|
|
|
|
chmod a-w $@
|
|
|
|
|
1999-08-22 17:50:57 +00:00
|
|
|
NMakefile: NMakefile.template .dep_segment Makefile
|
1998-07-30 20:54:47 +00:00
|
|
|
rm -f $@
|
|
|
|
cp $< $@
|
|
|
|
echo >>$@; echo '# --------------- DEPENDENCIES' >>$@; echo '#' >>$@; \
|
|
|
|
sed 's/^\([^ ]*\)\.o:/$$(OUTDIR)\/\1.obj:/' $(word 2,$^) >>$@
|
1997-08-18 18:11:04 +00:00
|
|
|
chmod a-w $@
|
|
|
|
|
|
|
|
# Construct build.sh.in
|
|
|
|
#
|
1999-08-22 17:50:57 +00:00
|
|
|
build.sh.in: build.template Makefile
|
1997-08-18 18:11:04 +00:00
|
|
|
rm -f $@
|
2003-05-02 01:44:59 +00:00
|
|
|
sed -e 's@%objs%@$(patsubst %.o,%.$${OBJEXT},$(filter-out remote-%,$(make_OBJECTS)))@g' \
|
2004-03-22 15:11:48 +00:00
|
|
|
-e 's@%globobjs%@$(patsubst %.c,%.$${OBJEXT},$(globsrc))@g' \
|
1999-03-26 07:08:57 +00:00
|
|
|
$< > $@
|
1997-08-18 18:11:04 +00:00
|
|
|
chmod a-w+x $@
|
|
|
|
|
2002-04-22 04:35:19 +00:00
|
|
|
|
1998-07-30 20:54:47 +00:00
|
|
|
# Use automake to build a dependency list file, for "foreign" makefiles like
|
|
|
|
# Makefile.DOS.
|
|
|
|
#
|
2002-04-22 04:35:19 +00:00
|
|
|
# Automake used to have a --generate-deps flag, but it's gone now, so we have
|
|
|
|
# to do it ourselves.
|
|
|
|
#
|
2004-11-30 20:58:52 +00:00
|
|
|
DEP_FILES := $(wildcard $(DEPDIR)/*.Po)
|
1998-07-30 20:54:47 +00:00
|
|
|
.dep_segment: Makefile.am maintMakefile $(DEP_FILES)
|
2005-07-12 04:35:13 +00:00
|
|
|
rm -f $@
|
2004-11-30 20:58:52 +00:00
|
|
|
(for f in $(DEPDIR)/*.Po; do \
|
|
|
|
echo ""; \
|
|
|
|
echo "# $$f"; \
|
2005-07-12 04:35:13 +00:00
|
|
|
sed -e '/^[^:]*\.[ch] *:/d' \
|
|
|
|
-e 's, /usr/[^ ]*,,g' \
|
|
|
|
-e 's, $(srcdir)/, ,g' \
|
|
|
|
-e '/^ *\\$$/d' \
|
|
|
|
-e '/^ *$$/d' \
|
|
|
|
< $$f; \
|
2004-11-30 20:58:52 +00:00
|
|
|
done) > $@
|
1998-07-30 20:54:47 +00:00
|
|
|
|
2013-01-13 00:31:13 +00:00
|
|
|
# Cleaning
|
2002-08-10 01:27:16 +00:00
|
|
|
|
2013-01-13 00:31:13 +00:00
|
|
|
GIT := git
|
2006-10-01 05:38:38 +00:00
|
|
|
|
2013-01-13 02:53:15 +00:00
|
|
|
# git-clean: Clean all "ignored" files. Leave untracked files.
|
|
|
|
# git-very-clean: Clean all files that aren't stored in source control.
|
2004-02-23 06:25:54 +00:00
|
|
|
|
2013-01-13 02:53:15 +00:00
|
|
|
.PHONY: git-clean git-very-clean
|
2013-01-13 00:31:13 +00:00
|
|
|
git-clean:
|
|
|
|
-$(GIT) clean -fdX
|
2013-01-13 02:53:15 +00:00
|
|
|
git-very-clean: git-clean
|
|
|
|
-$(GIT) clean -fd
|
2002-07-08 02:26:47 +00:00
|
|
|
|
|
|
|
|
2013-10-13 14:54:32 +00:00
|
|
|
|
|
|
|
## ---------------------- ##
|
|
|
|
## Generating ChangeLog. ##
|
|
|
|
## ---------------------- ##
|
|
|
|
|
|
|
|
gl2cl-date := 2013-10-10
|
|
|
|
gl2cl := $(GNULIBDIR)/build-aux/gitlog-to-changelog
|
|
|
|
|
|
|
|
# Rebuild the changelog whenever a new commit is added
|
|
|
|
ChangeLog: .check-git-HEAD
|
|
|
|
if test -f '$(gl2cl)'; then \
|
|
|
|
'$(gl2cl)' --since='$(gl2cl-date)' > '$@'; \
|
|
|
|
else \
|
|
|
|
echo "WARNING: $(gl2cl) is not available. No $@ generated."; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
.PHONY: .check-git-HEAD
|
|
|
|
.check-git-HEAD:
|
|
|
|
sha="`git rev-parse HEAD`"; \
|
|
|
|
[ -f '$@' ] && [ "`cat '$@' 2>/dev/null`" = "$$sha" ] \
|
|
|
|
|| echo "$$sha" > '$@'
|
2002-07-08 02:26:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
## ---------------- ##
|
|
|
|
## Updating files. ##
|
|
|
|
## ---------------- ##
|
|
|
|
|
2014-09-07 20:54:36 +00:00
|
|
|
WGET = wget --passive-ftp -np -nv
|
2002-07-08 02:26:47 +00:00
|
|
|
ftp-gnu = ftp://ftp.gnu.org/gnu
|
|
|
|
|
|
|
|
move_if_change = if test -r $(target) && cmp -s $(target).t $(target); then \
|
|
|
|
echo $(target) is unchanged; rm -f $(target).t; \
|
|
|
|
else \
|
2014-09-07 20:54:36 +00:00
|
|
|
mv -f $(target).t $(target); \
|
2002-07-08 02:26:47 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# ------------------- #
|
|
|
|
# Updating PO files. #
|
|
|
|
# ------------------- #
|
|
|
|
|
2005-07-04 03:50:59 +00:00
|
|
|
# PO archive mirrors --- Be careful; some might not be fully populated!
|
|
|
|
# ftp://ftp.unex.es/pub/gnu-i18n/po/maint/
|
|
|
|
# http://translation.sf.net/maint/
|
|
|
|
# ftp://tiger.informatik.hu-berlin.de/pub/po/maint/
|
|
|
|
|
2014-09-07 20:54:36 +00:00
|
|
|
po_wget_flags = --recursive --level=1 --no-directories --no-check-certificate
|
2008-03-28 03:46:39 +00:00
|
|
|
po_repo = http://translationproject.org/latest/$(PACKAGE)
|
2002-07-08 02:26:47 +00:00
|
|
|
.PHONY: do-po-update po-update
|
|
|
|
do-po-update:
|
2006-03-17 18:55:26 +00:00
|
|
|
tmppo="/tmp/po-$(PACKAGE)-$(VERSION).$$$$" \
|
|
|
|
&& rm -rf "$$tmppo" \
|
|
|
|
&& mkdir "$$tmppo" \
|
|
|
|
&& (cd "$$tmppo" \
|
2011-09-17 01:45:09 +00:00
|
|
|
&& $(WGET) $(po_wget_flags) -A '*.po' $(po_repo)) \
|
2014-09-07 20:54:36 +00:00
|
|
|
&& cp "$$tmppo"/*.po $(top_srcdir)/po \
|
|
|
|
&& rm -rf "$$tmppo"
|
2002-07-08 02:26:47 +00:00
|
|
|
cd po && $(MAKE) update-po
|
|
|
|
$(MAKE) po-check
|
|
|
|
|
|
|
|
po-update:
|
2009-06-04 06:30:27 +00:00
|
|
|
[ -d "po" ] && $(MAKE) do-po-update
|
2002-07-08 02:26:47 +00:00
|
|
|
|
|
|
|
# -------------------------- #
|
2005-02-09 21:28:00 +00:00
|
|
|
# Updating GNU build files. #
|
2002-07-08 02:26:47 +00:00
|
|
|
# -------------------------- #
|
|
|
|
|
|
|
|
# The following pseudo table associates a local directory and a URL
|
|
|
|
# with each of the files that belongs to some other package and is
|
|
|
|
# regularly updated from the specified URL.
|
|
|
|
|
2009-06-04 06:30:27 +00:00
|
|
|
cvs-url = http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~
|
|
|
|
git-url = http://git.savannah.gnu.org/cgit
|
2002-07-08 02:26:47 +00:00
|
|
|
target = $(patsubst get-%,%,$@)
|
2004-02-23 06:25:54 +00:00
|
|
|
|
2009-06-04 06:30:27 +00:00
|
|
|
config-url = $(git-url)/config.git/plain/$(patsubst get-config/%,%,$@)
|
2003-10-22 04:35:27 +00:00
|
|
|
get-config/config.guess get-config/config.sub:
|
|
|
|
@echo $(WGET) $(config-url) -O $(target) \
|
|
|
|
&& $(WGET) $(config-url) -O $(target).t \
|
|
|
|
&& $(move_if_change)
|
|
|
|
|
2009-06-04 06:30:27 +00:00
|
|
|
gnulib-url = $(git-url)/gnulib.git/plain/build-aux/$(patsubst get-config/%,%,$@)
|
2004-02-23 06:25:54 +00:00
|
|
|
get-config/texinfo.tex:
|
|
|
|
@echo $(WGET) $(gnulib-url) -O $(target) \
|
|
|
|
&& $(WGET) $(gnulib-url) -O $(target).t \
|
|
|
|
&& $(move_if_change)
|
|
|
|
|
2009-06-04 06:30:27 +00:00
|
|
|
gnustandards-url = $(cvs-url)/gnustandards/gnustandards/$(patsubst get-doc/%,%,$@)
|
2005-02-09 21:28:00 +00:00
|
|
|
get-doc/make-stds.texi get-doc/fdl.texi:
|
|
|
|
@echo $(WGET) $(gnustandards-url) -O $(target) \
|
|
|
|
&& $(WGET) $(gnustandards-url) -O $(target).t \
|
|
|
|
&& $(move_if_change)
|
2002-07-08 02:26:47 +00:00
|
|
|
|
2009-06-04 06:30:27 +00:00
|
|
|
.PHONY: scm-update
|
|
|
|
scm-update: get-config/texinfo.tex get-config/config.guess get-config/config.sub get-doc/make-stds.texi get-doc/fdl.texi
|
2002-07-08 02:26:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
# --------------------- #
|
|
|
|
# Updating everything. #
|
|
|
|
# --------------------- #
|
|
|
|
|
|
|
|
.PHONY: update
|
2009-06-04 06:30:27 +00:00
|
|
|
update: po-update scm-update
|
2002-07-08 13:05:02 +00:00
|
|
|
|
|
|
|
|
2013-09-21 22:10:08 +00:00
|
|
|
# ---------------------------------- #
|
|
|
|
# Alternative configuration checks. #
|
|
|
|
# ---------------------------------- #
|
|
|
|
|
|
|
|
.PHONY: check-alt-config
|
|
|
|
check-alt-config: \
|
|
|
|
checkcfg.--disable-job-server \
|
|
|
|
checkcfg.--disable-load \
|
|
|
|
checkcfg.--without-guile \
|
|
|
|
checkcfg.CPPFLAGS^-DNO_OUTPUT_SYNC \
|
|
|
|
checkcfg.CPPFLAGS^-DNO_ARCHIVES
|
|
|
|
|
2013-10-19 16:22:36 +00:00
|
|
|
NR_MAKE = $(MAKE)
|
|
|
|
|
|
|
|
# Check builds both with build.sh and with make
|
2013-09-21 22:10:08 +00:00
|
|
|
checkcfg.%: distdir
|
2013-10-19 16:22:36 +00:00
|
|
|
@( rm -rf $(distdir)/_build \
|
2013-09-21 22:10:08 +00:00
|
|
|
&& mkdir $(distdir)/_build \
|
|
|
|
&& cd $(distdir)/_build \
|
|
|
|
&& echo "Testing configure with $(subst ^,=,$*)" \
|
|
|
|
&& ../configure --srcdir=.. $(subst ^,=,$*) \
|
|
|
|
$(AM_DISTCHECK_CONFIGURE_FLAGS) $(DISTCHECK_CONFIGURE_FLAGS) \
|
|
|
|
CFLAGS='$(AM_CFLAGS)' \
|
2013-10-19 16:22:36 +00:00
|
|
|
&& ./build.sh \
|
|
|
|
&& ./make $(AM_MAKEFLAGS) check \
|
|
|
|
&& rm -f *.o make \
|
|
|
|
&& $(NR_MAKE) $(AM_MAKEFLAGS) \
|
|
|
|
&& ./make $(AM_MAKEFLAGS) check ) 2>&1 | tee checkcfg.$*.log
|
2013-09-21 22:10:08 +00:00
|
|
|
|
|
|
|
|
2002-07-08 13:05:02 +00:00
|
|
|
## --------------- ##
|
|
|
|
## Sanity checks. ##
|
|
|
|
## --------------- ##
|
|
|
|
|
2013-09-21 22:10:08 +00:00
|
|
|
# Before we build a distribution be sure we run our local checks
|
|
|
|
#distdir: local-check
|
|
|
|
|
2013-10-13 14:54:32 +00:00
|
|
|
.PHONY: local-check po-check changelog-check
|
|
|
|
|
2013-01-13 00:31:13 +00:00
|
|
|
# Checks that don't require Git. Run 'changelog-check' last as
|
2002-07-08 13:05:02 +00:00
|
|
|
# previous test may reveal problems requiring new ChangeLog entries.
|
|
|
|
local-check: po-check changelog-check
|
|
|
|
|
|
|
|
# copyright-check writable-files
|
|
|
|
|
|
|
|
changelog-check:
|
2009-06-04 06:30:27 +00:00
|
|
|
if head $(top_srcdir)/ChangeLog | grep 'Version $(VERSION)' >/dev/null; then \
|
2002-07-08 13:05:02 +00:00
|
|
|
:; \
|
|
|
|
else \
|
|
|
|
echo "$(VERSION) not in ChangeLog" 1>&2; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Verify that all source files using _() are listed in po/POTFILES.in.
|
2013-01-20 16:01:01 +00:00
|
|
|
# Ignore makeint.h; it defines _().
|
2002-07-08 13:05:02 +00:00
|
|
|
po-check:
|
|
|
|
if test -f po/POTFILES.in; then \
|
2006-10-01 05:38:38 +00:00
|
|
|
grep '^[^#]' po/POTFILES.in | sort > $@-1; \
|
2013-01-20 16:01:01 +00:00
|
|
|
$(PERL) -wn -e 'if (/\b_\(/) { $$ARGV eq "makeint.h" || print "$$ARGV\n" and close ARGV }' *.c *.h | sort > $@-2; \
|
2002-07-08 13:05:02 +00:00
|
|
|
diff -u $@-1 $@-2 || exit 1; \
|
|
|
|
rm -f $@-1 $@-2; \
|
|
|
|
fi
|
2004-03-04 13:42:51 +00:00
|
|
|
|
2013-10-13 18:42:23 +00:00
|
|
|
|
|
|
|
## --------------- ##
|
|
|
|
## Generate docs. ##
|
|
|
|
## --------------- ##
|
|
|
|
|
2014-10-05 16:18:08 +00:00
|
|
|
.PHONY: update-makeweb gendocs
|
2013-10-13 18:42:23 +00:00
|
|
|
|
|
|
|
CVS = cvs
|
|
|
|
|
|
|
|
makeweb-repo = $(USER)@cvs.sv.gnu.org:/web/make
|
|
|
|
gnuweb-repo = :pserver:anonymous@cvs.sv.gnu.org:/web/www
|
|
|
|
gnuweb-dir = www/server/standards
|
|
|
|
|
|
|
|
# Get the GNU make web page boilerplate etc.
|
|
|
|
update-makeweb:
|
|
|
|
[ -d '$(MAKEWEBDIR)' ] || mkdir -p '$(MAKEWEBDIR)'
|
|
|
|
[ -d '$(MAKEWEBDIR)'/CVS ] \
|
|
|
|
&& { cd '$(MAKEWEBDIR)' && $(CVS) update; } \
|
|
|
|
|| { mkdir -p '$(dir $(MAKEWEBDIR))' && cd '$(dir $(MAKEWEBDIR))' \
|
|
|
|
&& $(CVS) -d $(makeweb-repo) co -d '$(notdir $(MAKEWEBDIR))' make; }
|
|
|
|
|
|
|
|
# Get the GNU web page boilerplate etc.
|
|
|
|
update-gnuweb:
|
|
|
|
[ -d '$(GNUWEBDIR)' ] || mkdir -p '$(GNUWEBDIR)'
|
|
|
|
[ -d '$(GNUWEBDIR)/$(gnuweb-dir)'/CVS ] \
|
|
|
|
&& { cd '$(GNUWEBDIR)/$(gnuweb-dir)' && $(CVS) update; } \
|
|
|
|
|| { cd '$(GNUWEBDIR)' && $(CVS) -d $(gnuweb-repo) co '$(gnuweb-dir)'; }
|
|
|
|
|
|
|
|
gendocs: update-gnuweb update-makeweb
|
|
|
|
cp $(GNULIBDIR)/doc/gendocs_template doc
|
|
|
|
cd doc \
|
|
|
|
&& rm -rf doc/manual \
|
|
|
|
&& $(GNULIBDIR)/build-aux/gendocs.sh --email '$(BUGLIST)' \
|
|
|
|
make 'GNU Make Manual'
|
|
|
|
find '$(MAKEWEBDIR)'/manual \( -name CVS -prune \) -o \( -name '[!.]*' -type f -exec rm -f '{}' \; \)
|
|
|
|
cp -r doc/manual '$(MAKEWEBDIR)'
|
|
|
|
@echo 'Status of $(MAKEWEBDIR) repo:' && cd '$(MAKEWEBDIR)' \
|
2014-10-05 16:18:08 +00:00
|
|
|
&& cvs -q -n update | grep -v '^M ' \
|
2013-10-13 18:42:23 +00:00
|
|
|
&& echo '- cvs add <new files>' \
|
|
|
|
&& echo '- cvs remove <deleted files>' \
|
|
|
|
&& echo '- cvs commit' \
|
|
|
|
&& echo '- cvs tag make-$(subst .,-,$(VERSION))'
|
|
|
|
|
2013-10-09 05:54:24 +00:00
|
|
|
## ------------------------- ##
|
|
|
|
## Make release targets. ##
|
|
|
|
## ------------------------- ##
|
|
|
|
|
2013-10-13 18:42:23 +00:00
|
|
|
.PHONY: tag-release
|
2013-10-09 05:54:24 +00:00
|
|
|
tag-release:
|
|
|
|
case '$(VERSION)' in \
|
|
|
|
(*.*.9*) message=" candidate" ;; \
|
|
|
|
(*) message= ;; \
|
|
|
|
esac; \
|
|
|
|
$(GIT) tag -m "GNU Make release$$message $(VERSION)" -u '$(GPG_FINGERPRINT)' '$(VERSION)'
|
|
|
|
|
2004-03-04 13:42:51 +00:00
|
|
|
## ------------------------- ##
|
|
|
|
## GNU FTP upload artifacts. ##
|
|
|
|
## ------------------------- ##
|
|
|
|
|
|
|
|
# This target creates the upload artifacts.
|
2007-03-20 03:02:26 +00:00
|
|
|
# Sign it with my key. If you don't have my key/passphrase then sorry,
|
|
|
|
# you're SOL! :)
|
2004-03-04 13:42:51 +00:00
|
|
|
|
|
|
|
GPG = gpg
|
2013-10-09 05:54:24 +00:00
|
|
|
GPGFLAGS = -u $(GPG_FINGERPRINT)
|
2004-03-04 13:42:51 +00:00
|
|
|
|
|
|
|
DIST_ARCHIVES_SIG = $(addsuffix .sig,$(DIST_ARCHIVES))
|
|
|
|
DIST_ARCHIVES_DIRECTIVE = $(addsuffix .directive.asc,$(DIST_ARCHIVES))
|
|
|
|
|
2007-03-20 03:02:26 +00:00
|
|
|
# A simple rule to test signing, etc.
|
2004-03-06 08:00:17 +00:00
|
|
|
.PHONY: distsign
|
|
|
|
distsign: $(DIST_ARCHIVES_SIG) $(DIST_ARCHIVES_DIRECTIVE)
|
2004-03-04 13:42:51 +00:00
|
|
|
|
|
|
|
%.sig : %
|
|
|
|
@echo "Signing file '$<':"
|
2007-03-20 03:02:26 +00:00
|
|
|
$(GPG) $(GPGFLAGS) -o "$@" -b "$<"
|
2004-03-04 13:42:51 +00:00
|
|
|
|
2007-03-20 03:02:26 +00:00
|
|
|
%.directive.asc: %
|
2004-03-04 13:42:51 +00:00
|
|
|
@echo "Creating directive file '$@':"
|
2007-03-20 03:02:26 +00:00
|
|
|
@( \
|
2010-07-07 02:06:48 +00:00
|
|
|
echo 'version: 1.1'; \
|
2007-03-20 03:02:26 +00:00
|
|
|
echo 'directory: make'; \
|
|
|
|
echo 'filename: $*'; \
|
|
|
|
echo 'comment: Official upload of GNU make version $(VERSION)'; \
|
|
|
|
) > "$*.directive"
|
|
|
|
$(GPG) $(GPGFLAGS) -o "$@" --clearsign "$*.directive"
|
|
|
|
@rm -f "$*.directive"
|
2004-03-06 08:00:17 +00:00
|
|
|
|
|
|
|
# Upload the artifacts
|
|
|
|
|
|
|
|
FTPPUT = ncftpput
|
2010-07-07 02:06:48 +00:00
|
|
|
gnu-upload-host = ftp-upload.gnu.org
|
|
|
|
gnu-upload-dir = /incoming
|
|
|
|
|
2004-03-06 08:00:17 +00:00
|
|
|
|
|
|
|
UPLOADS = upload-alpha upload-ftp
|
|
|
|
.PHONY: $(UPLOADS)
|
|
|
|
$(UPLOADS): $(DIST_ARCHIVES) $(DIST_ARCHIVES_SIG) $(DIST_ARCHIVES_DIRECTIVE)
|
2010-07-07 02:06:48 +00:00
|
|
|
$(FTPPUT) "$(gnu-upload-host)" "$(gnu-upload-dir)/$(@:upload-%=%)" $^
|
2006-02-11 19:02:21 +00:00
|
|
|
|
|
|
|
|
2014-09-30 12:33:21 +00:00
|
|
|
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
|
2006-02-11 19:02:21 +00:00
|
|
|
# This file is part of GNU Make.
|
|
|
|
#
|
2007-07-04 19:35:15 +00:00
|
|
|
# GNU Make is free software; you can redistribute it and/or modify it under
|
|
|
|
# the terms of the GNU General Public License as published by the Free Software
|
|
|
|
# Foundation; either version 3 of the License, or (at your option) any later
|
|
|
|
# version.
|
2006-02-11 19:02:21 +00:00
|
|
|
#
|
|
|
|
# GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
|
2007-07-04 19:35:15 +00:00
|
|
|
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
|
|
# details.
|
2006-02-11 19:02:21 +00:00
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License along with
|
2007-07-04 19:35:15 +00:00
|
|
|
# this program. If not, see <http://www.gnu.org/licenses/>.
|