diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-07-01 19:04:20 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-07-01 19:04:20 (GMT) |
commit | 26713d42100ebb0f949777060102b8fa20c22ffd (patch) | |
tree | c19e1e5ca3405de45e3465487ec1617fd579b532 /tools | |
parent | c2abd16d69e6fb9514c91d81d25aa56a0633723c (diff) |
Merge the build system to trunk: ct-ng is now installable:
- ./configure --prefix=/some/place
- make
- make install
- export PATH="${PATH}:/some/place/bin"
- ct-ng <action>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Makefile | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/tools/Makefile b/tools/Makefile index 9985e3a..72416b8 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,11 +1,31 @@ +# Makefile for the tools/ sub-directory + +# Here, we can update the config.* scripts. +# If we're in CT_LIB_DIR, then CT_LIB_DIR == CT_TOP_DIR, and we can update those +# scripts for later inclusion mainline. If CT_LIB_DIR != CT_TOP_DIR, then those +# scripts are downloaded only for use in CT_TOP_DIR. + CONFIG_SUB_SRC="http://cvs.savannah.gnu.org/viewcvs/*checkout*/config/config/config.sub" CONFIG_SUB_DEST="$(CT_TOP_DIR)/tools/config.sub" CONFIG_GUESS_SRC="http://cvs.savannah.gnu.org/viewcvs/*checkout*/config/config/config.guess" CONFIG_GUESS_DEST="$(CT_TOP_DIR)/tools/config.guess" -updatetools: - @wget "$(CONFIG_SUB_SRC)" -O "$(CONFIG_SUB_DEST)" - @wget "$(CONFIG_GUESS_SRC)" -O "$(CONFIG_GUESS_DEST)" +$(CT_TOP_DIR)/tools: + @mkdir -p $(CT_TOP_DIR)/tools + +PHONY += updatetools +updatetools: $(CT_TOP_DIR)/tools $(CONFIG_SUB_DEST) $(CONFIG_GUESS_DEST) + +$(CONFIG_SUB_DEST): + @wget $(CONFIG_SUB_SRC) -O $@ + @chmod u+rwx,go+rx-w $@ + +$(CONFIG_GUESS_DEST): + @wget $(CONFIG_GUESS_SRC) -O $@ + @chmod u+rwx,go+rx-w $@ help-distrib:: @echo ' updatetools - Update the config tools' + +distclean:: + @[ $(CT_TOP_DIR) = $(CT_LIB_DIR) ] || rm -rf $(CT_TOP_DIR)/tools |