VirtualBox

Changeset 280 in kBuild for branches/GNU/src/gmake/maintMakefile


Ignore:
Timestamp:
May 16, 2005 4:54:02 PM (19 years ago)
Author:
bird
Message:

Current make snaphot, 2005-05-16.

Location:
branches/GNU/src/gmake
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gmake

    • Property svn:ignore
      •  

        old new  
        3434README.DOS
        3535README.W32
         36README.OS2
        3637aclocal.m4
        3738autom4te.cache
  • branches/GNU/src/gmake/maintMakefile

    r54 r280  
    22# only if you have the full copy of the GNU make sources from the CVS
    33# tree, not a dist copy.
    4 #
     4
     5# We like mondo-warnings!
     6AM_CFLAGS += -Wall -W
    57
    68# Find the glob source files... this might be dangerous, but we're maintainers!
    7 #
    89globsrc := $(wildcard glob/*.c)
    910globhdr := $(wildcard glob/*.h)
     
    1415
    1516all-am: $(TEMPLATES) $(MTEMPLATES) build.sh.in
    16 
    17 # We need this to ensure that README and build.sh.in are created on time to
    18 # avoid errors by automake.
    19 #
    20 #Makefile.in: README build.sh.in
    2117
    2218# General rule for turning a .template into a regular file.
     
    5652        rm -f $@
    5753        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' \
    5955          $< > $@
    6056        chmod a-w+x $@
     
    6763# to do it ourselves.
    6864#
     65DEP_FILES := $(wildcard $(DEPDIR)/*.Po)
    6966.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) > $@
    7677
    7778# Get rid of everything "else".
     
    8081
    8182CVS-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.*
    8385
    8486# This rule tries to clean the tree right down to how it looks when you do a
    8587# virgin CVS checkout.
    8688
     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...
     93cvsclean = 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
    8795.PHONY: cvs-clean
    8896cvs-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)
    96102
    97103
     
    119125# ------------------- #
    120126
    121 po_repo = http://www2.iro.umontreal.ca/%7Egnutra/po/maint/$(PACKAGE)
     127po_repo = http://www.iro.umontreal.ca/translation/maint/$(PACKAGE)
    122128.PHONY: do-po-update po-update
    123129do-po-update:
     
    136142
    137143# -------------------------- #
    138 # Updating GNU build tools.  #
     144# Updating GNU build files.  #
    139145# -------------------------- #
    140146
     
    142148# with each of the files that belongs to some other package and is
    143149# 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
     151savannah-url = http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~
    160152target = $(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
     154config-url = $(savannah-url)/config/config/$(patsubst get-config/%,%,$@)
    171155get-config/config.guess get-config/config.sub:
    172156        @echo $(WGET) $(config-url) -O $(target) \
     
    174158          && $(move_if_change)
    175159
    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)
     160gnulib-url = $(savannah-url)/gnulib/gnulib/build-aux/$(patsubst get-config/%,%,$@)
     161get-config/texinfo.tex:
     162        @echo $(WGET) $(gnulib-url) -O $(target) \
     163          && $(WGET) $(gnulib-url) -O $(target).t \
     164          && $(move_if_change)
     165
     166gnustandards-url = $(savannah-url)/gnustandards/gnustandards/$(patsubst get-doc/%,%,$@)
     167get-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)
    192171
    193172.PHONY: cvs-update
    194 cvs-update: $(cvs-targets) get-config/config.guess get-config/config.sub
     173cvs-update: get-config/texinfo.tex get-config/config.guess get-config/config.sub get-doc/make-stds.texi get-doc/fdl.texi
    195174
    196175
     
    200179
    201180.PHONY: update
    202 update: wget-update po-update
    203 
    204 # cvs-update
     181update: po-update cvs-update
    205182
    206183
     
    232209          rm -f $@-1 $@-2; \
    233210        fi
     211
     212## ------------------------- ##
     213## GNU FTP upload artifacts. ##
     214## ------------------------- ##
     215
     216# This target creates the upload artifacts.
     217# Sign it with my key.
     218
     219GPG = gpg
     220GPGFLAGS = -u 6338B6D4
     221
     222DIST_ARCHIVES_SIG = $(addsuffix .sig,$(DIST_ARCHIVES))
     223DIST_ARCHIVES_DIRECTIVE = $(addsuffix .directive.asc,$(DIST_ARCHIVES))
     224
     225.PHONY: distsign
     226distsign: $(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
     243FTPPUT = ncftpput
     244gnu-url = ftp-upload.gnu.org /incoming
     245
     246UPLOADS = 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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette