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
16 sed -e 's@%VERSION%@$(VERSION)@' \
17 -e 's@%PACKAGE%@$(PACKAGE)@' \
21 # Construct Makefile.DOS
23 Makefile.DOS: Makefile.DOS.template Makefile.am configure.in
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)@' \
34 # Construct build.sh.in
36 build.sh.in: build.template Makefile.am
38 sed -e 's@%objs%@$(filter-out remote-%, $(make_OBJECTS)\
39 $(patsubst %.c,%.o,$(globsrc)))@' \
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 \
55 # Put the alpha distribution files up for anonymous FTP.
58 TARFILE := $(distdir).tar.gz
61 alpha: $(ALPHA) $(TARFILE)
62 @rm -f $(ALPHA)/$(TARFILE)
63 cp -p $(TARFILE) $(ALPHA)