Changeset 280 in kBuild for branches/GNU/src/gmake/maintMakefile
- Timestamp:
- May 16, 2005 4:54:02 PM (19 years ago)
- Location:
- branches/GNU/src/gmake
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
maintMakefile (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gmake
- Property svn:ignore
-
old new 34 34 README.DOS 35 35 README.W32 36 README.OS2 36 37 aclocal.m4 37 38 autom4te.cache
-
- Property svn:ignore
-
branches/GNU/src/gmake/maintMakefile
r54 r280 2 2 # only if you have the full copy of the GNU make sources from the CVS 3 3 # tree, not a dist copy. 4 # 4 5 # We like mondo-warnings! 6 AM_CFLAGS += -Wall -W 5 7 6 8 # Find the glob source files... this might be dangerous, but we're maintainers! 7 #8 9 globsrc := $(wildcard glob/*.c) 9 10 globhdr := $(wildcard glob/*.h) … … 14 15 15 16 all-am: $(TEMPLATES) $(MTEMPLATES) build.sh.in 16 17 # We need this to ensure that README and build.sh.in are created on time to18 # avoid errors by automake.19 #20 #Makefile.in: README build.sh.in21 17 22 18 # General rule for turning a .template into a regular file. … … 56 52 rm -f $@ 57 53 sed -e 's@%objs%@$(patsubst %.o,%.$${OBJEXT},$(filter-out remote-%,$(make_OBJECTS)))@g' \ 58 -e 's@%globobjs%@$(patsubst %.c,%.$${OBJEXT},$(globsrc)) )@g' \54 -e 's@%globobjs%@$(patsubst %.c,%.$${OBJEXT},$(globsrc))@g' \ 59 55 $< > $@ 60 56 chmod a-w+x $@ … … 67 63 # to do it ourselves. 68 64 # 65 DEP_FILES := $(wildcard $(DEPDIR)/*.Po) 69 66 .dep_segment: Makefile.am maintMakefile $(DEP_FILES) 70 cat $(DEP_FILES) \ 71 | sed -e '/^[^:]*\.[ch] *:/d' \ 72 -e 's, /usr/[^ ]*,,g' \ 73 -e 's, $(srcdir)/, ,g' \ 74 -e '/^ \\$$/d' \ 75 > $@ 67 (for f in $(DEPDIR)/*.Po; do \ 68 echo ""; \ 69 echo "# $$f"; \ 70 cat $$f \ 71 | sed -e '/^[^:]*\.[ch] *:/d' \ 72 -e 's, /usr/[^ ]*,,g' \ 73 -e 's, $(srcdir)/, ,g' \ 74 -e '/^ *\\$$/d' \ 75 -e '/^ *$$/d'; \ 76 done) > $@ 76 77 77 78 # Get rid of everything "else". … … 80 81 81 82 CVS-CLEAN-FILES += $(maintFILES) $(TEMPLATES) $(MTEMPLATES) NMakefile \ 82 missing build.sh.in .dep_segment po-check-? 83 build.sh.in .deps .dep_segment ABOUT-NLS \ 84 ansi2knr.* 83 85 84 86 # This rule tries to clean the tree right down to how it looks when you do a 85 87 # virgin CVS checkout. 86 88 89 # This is potentially dangerous since it removes _ANY FILE_ that is not in 90 # CVS. Including files you might mean to add to CVS but haven't yet... 91 # I only use this in subdirectories where it's unlikely we have any new 92 # files. Stil... 93 cvsclean = perl -e '$$k{CVS} = 1; open(E,"< CVS/Entries") || die "CVS/Entries: $$!\n"; while (defined ($$_ = <E>)) { m%^/([^/]*)% or next; $$k{$$1} = 1; } close(E) || die "CVS/Entries: $$!\n"; opendir(D, ".") || die ".: $$!\n"; while (defined ($$_ = readdir(D))) { -f $$_ && ! exists $$k{$$_} && unlink($$_); } closedir(D) || die ".: $$!\n";' 94 87 95 .PHONY: cvs-clean 88 96 cvs-clean: maintainer-clean 89 -rm -f *~ 90 -rm -f config/*~ config/Makefile.in config/[a-z]* 91 -rm -f po/*~ po/Makefile.in.in po/Rules-quot po/[a-z]* 92 -rm -f doc/*~ doc/Makefile.in doc/fdl.texi doc/make-stds.texi \ 93 doc/texinfo.tex 94 -rm -f glob/*~ glob/Makefile.in 95 -rm -f ABOUT-NLS $(CVS-CLEAN-FILES) 97 -rm -rf *~ $(CVS-CLEAN-FILES) 98 -cd config && $(cvsclean) 99 -cd po && $(cvsclean) 100 -cd doc && $(cvsclean) 101 -cd glob && $(cvsclean) 96 102 97 103 … … 119 125 # ------------------- # 120 126 121 po_repo = http://www 2.iro.umontreal.ca/%7Egnutra/po/maint/$(PACKAGE)127 po_repo = http://www.iro.umontreal.ca/translation/maint/$(PACKAGE) 122 128 .PHONY: do-po-update po-update 123 129 do-po-update: … … 136 142 137 143 # -------------------------- # 138 # Updating GNU build tools. #144 # Updating GNU build files. # 139 145 # -------------------------- # 140 146 … … 142 148 # with each of the files that belongs to some other package and is 143 149 # regularly updated from the specified URL. 144 # $(srcdir)/src/ansi2knr.c 145 146 147 wget_files ?= $(srcdir)/doc/texinfo.tex $(srcdir)/doc/make-stds.texi \ 148 $(srcdir)/doc/fdl.texi 149 150 wget-targets = $(patsubst %, get-%, $(wget_files)) 151 152 ansi2knr.c-url_prefix = ftp://ftp.cs.wisc.edu/ghost/ 153 154 texinfo.tex-url_prefix = $(ftp-gnu)/texinfo/ 155 156 standards.texi-url_prefix = $(ftp-gnu)/GNUinfo/ 157 make-stds.texi-url_prefix = $(ftp-gnu)/GNUinfo/ 158 fdl.texi-url_prefix = $(ftp-gnu)/GNUinfo/ 159 150 151 savannah-url = http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~ 160 152 target = $(patsubst get-%,%,$@) 161 url = $($(notdir $(target))-url_prefix)$(notdir $(target)) 162 163 .PHONY: $(wget-targets) 164 $(wget-targets): 165 @echo $(WGET) $(url) -O $(target) \ 166 && $(WGET) $(url) -O $(target).t \ 167 && $(move_if_change) 168 169 config-prefix = http://savannah.gnu.org/cgi-bin/viewcvs/config 170 config-url = $(config-prefix)/$(patsubst get-%,%,$@)?rev=HEAD 153 154 config-url = $(savannah-url)/config/config/$(patsubst get-config/%,%,$@) 171 155 get-config/config.guess get-config/config.sub: 172 156 @echo $(WGET) $(config-url) -O $(target) \ … … 174 158 && $(move_if_change) 175 159 176 177 .PHONY: wget-update 178 wget-update: $(wget-targets) 179 180 181 # Updating tools via CVS. 182 cvs_files ?= depcomp missing 183 # config/config.guess config/config.sub 184 cvs-targets = $(patsubst %, get-%, $(cvs_files)) 185 186 automake_repo = :pserver:anoncvs@anoncvs.cygnus.com:/cvs/automake 187 .PHONY: $(cvs-targets) 188 $(cvs-targets): 189 $(CVS) -d $(automake_repo) co -p automake/lib/$(notdir $(target)) \ 190 >$(target).t \ 191 && $(move_if_change) 160 gnulib-url = $(savannah-url)/gnulib/gnulib/build-aux/$(patsubst get-config/%,%,$@) 161 get-config/texinfo.tex: 162 @echo $(WGET) $(gnulib-url) -O $(target) \ 163 && $(WGET) $(gnulib-url) -O $(target).t \ 164 && $(move_if_change) 165 166 gnustandards-url = $(savannah-url)/gnustandards/gnustandards/$(patsubst get-doc/%,%,$@) 167 get-doc/make-stds.texi get-doc/fdl.texi: 168 @echo $(WGET) $(gnustandards-url) -O $(target) \ 169 && $(WGET) $(gnustandards-url) -O $(target).t \ 170 && $(move_if_change) 192 171 193 172 .PHONY: cvs-update 194 cvs-update: $(cvs-targets) get-config/config.guess get-config/config.sub173 cvs-update: get-config/texinfo.tex get-config/config.guess get-config/config.sub get-doc/make-stds.texi get-doc/fdl.texi 195 174 196 175 … … 200 179 201 180 .PHONY: update 202 update: wget-update po-update 203 204 # cvs-update 181 update: po-update cvs-update 205 182 206 183 … … 232 209 rm -f $@-1 $@-2; \ 233 210 fi 211 212 ## ------------------------- ## 213 ## GNU FTP upload artifacts. ## 214 ## ------------------------- ## 215 216 # This target creates the upload artifacts. 217 # Sign it with my key. 218 219 GPG = gpg 220 GPGFLAGS = -u 6338B6D4 221 222 DIST_ARCHIVES_SIG = $(addsuffix .sig,$(DIST_ARCHIVES)) 223 DIST_ARCHIVES_DIRECTIVE = $(addsuffix .directive.asc,$(DIST_ARCHIVES)) 224 225 .PHONY: distsign 226 distsign: $(DIST_ARCHIVES_SIG) $(DIST_ARCHIVES_DIRECTIVE) 227 228 $(DIST_ARCHIVES_DIRECTIVE): .directive.asc 229 cp $< $@ 230 231 %.sig : % 232 @echo "Signing file '$<':" 233 $(GPG) $(GPGFLAGS) -o $@ -b $< 234 235 .directive.asc: 236 @echo "Creating directive file '$@':" 237 @echo 'directory: make' > .directive 238 $(GPG) $(GPGFLAGS) -o $@ --clearsign .directive 239 @rm -f .directive 240 241 # Upload the artifacts 242 243 FTPPUT = ncftpput 244 gnu-url = ftp-upload.gnu.org /incoming 245 246 UPLOADS = upload-alpha upload-ftp 247 .PHONY: $(UPLOADS) 248 $(UPLOADS): $(DIST_ARCHIVES) $(DIST_ARCHIVES_SIG) $(DIST_ARCHIVES_DIRECTIVE) 249 $(FTPPUT) $(gnu-url)/$(@:upload-%=%) $^
Note:
See TracChangeset
for help on using the changeset viewer.

