From: Martin Mares Date: Sun, 9 Nov 2008 20:47:23 +0000 (+0100) Subject: Build: Renamed BUILDSYS_PATH to BUILDSYS to make it consistent with the rest. X-Git-Tag: holmes-import~172 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=daa0dfe6a351a3fada31f173ce0c0523bacb2740;p=libucw.git Build: Renamed BUILDSYS_PATH to BUILDSYS to make it consistent with the rest. --- diff --git a/build/Makebottom b/build/Makebottom index ef951f63..f3482d3e 100644 --- a/build/Makebottom +++ b/build/Makebottom @@ -31,7 +31,7 @@ tags: -include $(o)/depend $(o)/depend: force - $(Q)if [ -s $(o)/depend.new ] ; then $(BUILDSYS_PATH)/mergedeps $(o)/depend $(o)/depend.new ; >$(o)/depend.new ; fi + $(Q)if [ -s $(o)/depend.new ] ; then $(BUILDSYS)/mergedeps $(o)/depend $(o)/depend.new ; >$(o)/depend.new ; fi force: @@ -42,13 +42,13 @@ force: # Rules for configuration files -run/$(CONFIG_DIR)/%: $(s)/cf/% $(o)/config.mk $(BUILDSYS_PATH)/genconf +run/$(CONFIG_DIR)/%: $(s)/cf/% $(o)/config.mk $(BUILDSYS)/genconf $(M)CF $< - $(Q)$(BUILDSYS_PATH)/genconf $< $@ $(o)/config.mk + $(Q)$(BUILDSYS)/genconf $< $@ $(o)/config.mk -$(o)/%.cf: $(s)/%.cf $(o)/config.mk $(BUILDSYS_PATH)/genconf +$(o)/%.cf: $(s)/%.cf $(o)/config.mk $(BUILDSYS)/genconf $(M)CF $< - $(Q)$(BUILDSYS_PATH)/genconf $< $@ $(o)/config.mk + $(Q)$(BUILDSYS)/genconf $< $@ $(o)/config.mk $(Q)cp $@ run/$(CONFIG_DIR)/$(basename $(@F)) # Rules for libraries @@ -68,7 +68,7 @@ endif $(o)/%.pc: $(s)/%.pc $(o)/%.$(LS) $(M)PC $< - $(Q)DEPS="$(shell $(BUILDSYS_PATH)/lib-deps $^)" LIBDIR=$(@D) $(BUILDSYS_PATH)/genconf $< $@ $(o)/config.mk + $(Q)DEPS="$(shell $(BUILDSYS)/lib-deps $^)" LIBDIR=$(@D) $(BUILDSYS)/genconf $< $@ $(o)/config.mk $(Q)mkdir -p $(o)/pkgconfig $(Q)$(call symlink,$@,$(o)/pkgconfig) @@ -89,7 +89,7 @@ INSTALL_RUNDIRS+=include lib/pkgconfig api: $(API_INCLUDES) $(addprefix run/lib/pkgconfig/,$(addsuffix .pc,$(API_LIBS))) $(o)/%/.include-stamp: - $(Q)$(BUILDSYS_PATH)/install-includes $(> $(o)/depend.new - $(Q)$(BUILDSYS_PATH)/doc-defs $(DOC_HEAD) $@ $(DOC_LIST) + $(Q)$(BUILDSYS)/doc-defs $(DOC_HEAD) $@ $(DOC_LIST) -$(patsubst %.html,%.txt,$(DOCS)): $(o)/%.txt: $(s)/%.txt $(BUILDSYS_PATH)/doc-extract +$(patsubst %.html,%.txt,$(DOCS)): $(o)/%.txt: $(s)/%.txt $(BUILDSYS)/doc-extract $(M)"DOC-EXT $<" - $(Q)$(BUILDSYS_PATH)/doc-extract $< $@ $(o)/depend.new $(s) $(patsubst %.txt,%.deflist,$@) + $(Q)$(BUILDSYS)/doc-extract $< $@ $(o)/depend.new $(s) $(patsubst %.txt,%.deflist,$@) # Don't delete intermediate targets. There shouldn't be any, but due to bugs # in GNU Make rules with targets in not-yet-existing directories are ignored diff --git a/build/Makefile b/build/Makefile index 2e2ceffb..54698d2f 100644 --- a/build/Makefile +++ b/build/Makefile @@ -14,6 +14,6 @@ $(o)/build/genhash: LIBS= INSTALL_TARGETS+=install-build install-build: install -d -m 755 $(DESTDIR)$(INSTALL_SHARE_DIR)/ucw/build - install -m 755 $(addprefix $(BUILDSYS_PATH)/,install-includes doc-defs doc-extract genconf mergedeps tester lib-deps lib-flags) $(DESTDIR)$(INSTALL_SHARE_DIR)/ucw/build - install -m 644 $(addprefix $(BUILDSYS_PATH)/,asciidoc.conf asciidoc-xhtml.conf Makebottom Maketop) $(DESTDIR)$(INSTALL_SHARE_DIR)/ucw/build + install -m 755 $(addprefix $(BUILDSYS)/,install-includes doc-defs doc-extract genconf mergedeps tester lib-deps lib-flags) $(DESTDIR)$(INSTALL_SHARE_DIR)/ucw/build + install -m 644 $(addprefix $(BUILDSYS)/,asciidoc.conf asciidoc-xhtml.conf Makebottom Maketop) $(DESTDIR)$(INSTALL_SHARE_DIR)/ucw/build .PHONY: install-build diff --git a/free/libs/Makefile b/free/libs/Makefile index 7080e0f3..c08913f8 100644 --- a/free/libs/Makefile +++ b/free/libs/Makefile @@ -10,13 +10,13 @@ s=. obj/config.mk: @echo "You need to run configure first." && false -BUILDSYS_PATH=$(s)/build +BUILDSYS=$(s)/build # We will use the libucw build system -include $(BUILDSYS_PATH)/Maketop +include $(BUILDSYS)/Maketop # Install the build system -include $(BUILDSYS_PATH)/Makefile +include $(BUILDSYS)/Makefile # The UCW library include $(s)/ucw/Makefile @@ -62,7 +62,7 @@ endif libs: $(LIBUCW) $(LIBSH) $(LIBIMAGES) $(LIBCHARSET) $(LIBLANG) # And finally the default rules of the build system -include $(BUILDSYS_PATH)/Makebottom +include $(BUILDSYS)/Makebottom ifndef CONFIG_LOCAL install: all $(INSTALL_TARGETS) diff --git a/free/libs/examples/external-ucw-build/Makefile b/free/libs/examples/external-ucw-build/Makefile index db4d1243..db3a8c7c 100644 --- a/free/libs/examples/external-ucw-build/Makefile +++ b/free/libs/examples/external-ucw-build/Makefile @@ -11,12 +11,12 @@ s=. obj/config.mk: @echo "You need to run configure first." && false -# Do not show strange errors if the BUILDSYS_PATH is not set +# Do not show strange errors if the BUILDSYS is not set # (means noone yet called configure and it reported above) -ifdef BUILDSYS_PATH +ifdef BUILDSYS # We will use the libucw build system -include $(BUILDSYS_PATH)/Maketop +include $(BUILDSYS)/Maketop # Add the detected flags to all the global flags CFLAGS+=$(LIBUCW_CFLAGS) @@ -29,6 +29,6 @@ PROGS+=$(o)/test $(o)/test: $(o)/test.o $(LIBUCW) # And finally the default rules of the build system -include $(BUILDSYS_PATH)/Makebottom +include $(BUILDSYS)/Makebottom endif diff --git a/free/libs/examples/internal/Makefile b/free/libs/examples/internal/Makefile index 1b970e50..633ca098 100644 --- a/free/libs/examples/internal/Makefile +++ b/free/libs/examples/internal/Makefile @@ -10,10 +10,10 @@ s=. obj/config.mk: @echo "You need to run configure first." && false -BUILDSYS_PATH=$(s)/build +BUILDSYS=$(s)/build # We will use the libucw build system -include $(BUILDSYS_PATH)/Maketop +include $(BUILDSYS)/Maketop # Set up names of common libraries (to avoid forward references in rules) LIBLANG=$(o)/lang/liblang.pc @@ -34,4 +34,4 @@ $(o)/test: $(o)/test.o $(LIBUCW) $(LIBLANG) $(LIBCHARSET) $(LIBIMAGES) TESTING_DEPS=$(LIBUCW) # And finally the default rules of the build system -include $(BUILDSYS_PATH)/Makebottom +include $(BUILDSYS)/Makebottom diff --git a/ucw/Makefile b/ucw/Makefile index 69133c19..8f2be3f6 100644 --- a/ucw/Makefile +++ b/ucw/Makefile @@ -134,8 +134,8 @@ endif API_LIBS+=libucw API_INCLUDES+=$(o)/ucw/.include-stamp $(o)/ucw/.include-stamp: $(addprefix $(s)/ucw/,$(LIBUCW_INCLUDES)) $(o)/ucw/autoconf.h - $(Q)$(BUILDSYS_PATH)/install-includes $(/' <$(s)/ucw/config.h >run/include/ucw/config.h $(Q)touch $@ run/lib/pkgconfig/libucw.pc: $(o)/ucw/libucw.pc diff --git a/ucw/perl/UCW/Configure/Build.pm b/ucw/perl/UCW/Configure/Build.pm index 0d6f9d26..042d14ce 100644 --- a/ucw/perl/UCW/Configure/Build.pm +++ b/ucw/perl/UCW/Configure/Build.pm @@ -11,8 +11,8 @@ use UCW::Configure; use strict; use warnings; -if (!IsGiven("BUILDSYS_PATH")) { - Test("BUILDSYS_PATH", "Looking for UCW build system", sub { +if (!IsGiven("BUILDSYS")) { + Test("BUILDSYS", "Looking for UCW build system", sub { my $path=`pkg-config libucw --variable=build_system`; if($? || not defined $path) { Fail("Not found (is libUCW installed and PKG_CONFIG_PATH set?)");