* texinfo.tex (\acronym): New Texinfo command.
[make.git] / maintMakefile
blob5aab784b0283b41a2d1c6fc5afe2cb1d0330b8b9
1 # Maintainer-only makefile segment.  This contains things that are relevant
2 # only if you have the full copy of the GNU make sources, not a dist copy.
5 # Find the glob source files... this might be dangerous, but we're maintainers!
7 globsrc := $(wildcard glob/*.c)
8 globhdr := $(wildcard glob/*.h)
10 TEMPLATES = README config.ami configh.dos config.h.W32 config.h-vms
12 # General rule for turning a .template into a regular file.
14 $(TEMPLATES) : % : %.template configure.in
15         rm -f $@
16         sed -e 's@%VERSION%@$(VERSION)@' \
17             -e 's@%PACKAGE%@$(PACKAGE)@' \
18           $< > $@
19         chmod a-w $@
21 # Construct Makefile.DOS
23 Makefile.DOS: Makefile.DOS.template Makefile.am configure.in
24         rm -f $@
25         sed -e 's@%VERSION%@$(VERSION)@' \
26             -e 's@%PROGRAMS%@$(bin_PROGRAMS)@' \
27             -e 's@%SOURCES%@$(filter-out remote-%,$(make_SOURCES)) remote-$$(REMOTE).c@' \
28             -e 's@%OBJECTS%@$(filter-out remote-%,$(make_OBJECTS)) remote-$$(REMOTE).o@' \
29             -e 's@%GLOB_SOURCES%@$(globsrc) $(globhdr)@' \
30             -e 's@%GLOB_OBJECTS%@$(globsrc:glob/%.c=%.o)@' \
31           $< > $@
32         chmod a-w $@
34 # Construct build.sh.in
36 build.sh.in: build.template Makefile.am
37         rm -f $@
38         sed -e 's@%objs%@$(filter-out remote-%, $(make_OBJECTS)\
39                $(patsubst %.c,%.o,$(globsrc)))@' \
40             $< > $@
41         chmod a-w+x $@
43 # We clean everything here.  The GNU standards for makefile conventions say
44 # you shouldn't remove configure, etc., but this makefile is only available
45 # in a full development distribution, so they'll only be removed then.
47 # And _I_ want them to be removed ;)
49 maintFILES = configure aclocal.m4 config.h.in Makefile.in \
50              stamp-h.in glob/stamp-h.in
52 MAINTAINERCLEANFILES =  $(TEMPLATES) missing Makefile.DOS build.sh.in \
53                         $(maintFILES)
55 # Put the alpha distribution files up for anonymous FTP.
57 ALPHA   := ~ftp/gnu
58 TARFILE := $(distdir).tar.gz
60 .PHONY: alpha
61 alpha: $(ALPHA) $(TARFILE)
62         @rm -f $(ALPHA)/$(TARFILE)
63         cp -p $(TARFILE) $(ALPHA)