]> mj.ucw.cz Git - libucw.git/commitdiff
Build: Renamed BUILDSYS_PATH to BUILDSYS to make it consistent with the rest.
authorMartin Mares <mj@ucw.cz>
Sun, 9 Nov 2008 20:47:23 +0000 (21:47 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 9 Nov 2008 20:47:23 +0000 (21:47 +0100)
build/Makebottom
build/Makefile
free/libs/Makefile
free/libs/examples/external-ucw-build/Makefile
free/libs/examples/internal/Makefile
ucw/Makefile
ucw/perl/UCW/Configure/Build.pm

index ef951f63c2b052047b0666795ad5f0b352945555..f3482d3e18f9976599a21b11494b6ff5b113d271 100644 (file)
@@ -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 $(<D) run/include/$(IDST) $(?F)
+       $(Q)$(BUILDSYS)/install-includes $(<D) run/include/$(IDST) $(?F)
        $(Q)touch $@
 
 run/lib/pkgconfig/%.pc:                # RHS supplied in the sub-makefile
@@ -134,11 +134,11 @@ $(o)/%-tt.o: $(s)/%.c $(o)/autoconf.h
 
 $(o)/%-t: $(o)/%-tt.o $(TESTING_DEPS)
        $(M)LD-TEST $@
-       $(Q)$(CC) $(LDFLAGS) -o $@ $(shell PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" $(BUILDSYS_PATH)/lib-flags $^) $(LIBS)
+       $(Q)$(CC) $(LDFLAGS) -o $@ $(shell PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" $(BUILDSYS)/lib-flags $^) $(LIBS)
 
-$(o)/%.test: $(s)/%.t $(BUILDSYS_PATH)/tester
+$(o)/%.test: $(s)/%.t $(BUILDSYS)/tester
        $(M)TEST $@
-       $(Q)$(BUILDSYS_PATH)/tester --rundir=run $(TESTERFLAGS) $< && touch $@
+       $(Q)$(BUILDSYS)/tester --rundir=run $(TESTERFLAGS) $< && touch $@
 
 # Rules for binaries
 
@@ -146,30 +146,30 @@ BINDIR=bin
 
 $(o)/%: $(o)/%.o
        $(M)LD $@
-       $(Q)$(CC) $(LDFLAGS) -o $@ $(shell PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" $(BUILDSYS_PATH)/lib-flags $^) $(LIBS)
+       $(Q)$(CC) $(LDFLAGS) -o $@ $(shell PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" $(BUILDSYS)/lib-flags $^) $(LIBS)
        $(Q)$(call symlink,$@,run/$(BINDIR))
 
-$(o)/%: $(s)/%.sh $(o)/config.mk $(BUILDSYS_PATH)/genconf
+$(o)/%: $(s)/%.sh $(o)/config.mk $(BUILDSYS)/genconf
        $(M)PP $<
-       $(Q)$(BUILDSYS_PATH)/genconf $< $@ $(o)/config.mk
+       $(Q)$(BUILDSYS)/genconf $< $@ $(o)/config.mk
        $(Q)chmod +x $@
        $(Q)$(call symlink,$@,run/$(BINDIR))
 
-$(o)/%: %.sh $(o)/config.mk $(BUILDSYS_PATH)/genconf
+$(o)/%: %.sh $(o)/config.mk $(BUILDSYS)/genconf
        $(M)PP $<
-       $(Q)$(BUILDSYS_PATH)/genconf $< $@ $(o)/config.mk
+       $(Q)$(BUILDSYS)/genconf $< $@ $(o)/config.mk
        $(Q)chmod +x $@
        $(Q)$(call symlink,$@,run/$(BINDIR))
 
-$(o)/%: $(s)/%.pl $(o)/config.mk $(BUILDSYS_PATH)/genconf
+$(o)/%: $(s)/%.pl $(o)/config.mk $(BUILDSYS)/genconf
        $(M)PP $<
-       $(Q)$(BUILDSYS_PATH)/genconf $< $@ $(o)/config.mk
+       $(Q)$(BUILDSYS)/genconf $< $@ $(o)/config.mk
        $(Q)chmod +x $@
        $(Q)$(call symlink,$@,run/$(BINDIR))
 
-$(o)/%: %.pl $(o)/config.mk $(BUILDSYS_PATH)/genconf
+$(o)/%: %.pl $(o)/config.mk $(BUILDSYS)/genconf
        $(M)PP $<
-       $(Q)$(BUILDSYS_PATH)/genconf $< $@ $(o)/config.mk
+       $(Q)$(BUILDSYS)/genconf $< $@ $(o)/config.mk
        $(Q)chmod +x $@
        $(Q)$(call symlink,$@,run/$(BINDIR))
 
@@ -196,22 +196,22 @@ $(DATAFILES): $(o)/%: $(s)/%
 
 # Rules for documentation
 
-$(o)/%.html: $(o)/%.txt $(BUILDSYS_PATH)/asciidoc.conf $(BUILDSYS_PATH)/asciidoc-xhtml.conf run/$(DOCDIR)/$(DOC_MODULE)/.dir-stamp
+$(o)/%.html: $(o)/%.txt $(BUILDSYS)/asciidoc.conf $(BUILDSYS)/asciidoc-xhtml.conf run/$(DOCDIR)/$(DOC_MODULE)/.dir-stamp
        $(M)"DOC-HTML $<"
-       $(Q)asciidoc -e -f $(BUILDSYS_PATH)/asciidoc.conf -f $(BUILDSYS_PATH)/asciidoc-xhtml.conf -f /etc/asciidoc/asciidoc.conf -f /etc/asciidoc/xhtml11.conf $<
+       $(Q)asciidoc -e -f $(BUILDSYS)/asciidoc.conf -f $(BUILDSYS)/asciidoc-xhtml.conf -f /etc/asciidoc/asciidoc.conf -f /etc/asciidoc/xhtml11.conf $<
        $(Q)$(call symlink,$@,run/$(DOCDIR)/$(DOC_MODULE))
 
 # In reality, we do not depend on the .txt files, but on the corresponding .deflist's.
 # However, the Makefile language cannot express that doc-extract generates both .txt
 # and .deflist, so we always use the .txt's in dependencies.
-$(patsubst %.html,%.txt,$(DOC_INDICES)): $(o)/%.txt: $(patsubst %.html,%.txt,$(DOCS)) $(BUILDSYS_PATH)/doc-defs
+$(patsubst %.html,%.txt,$(DOC_INDICES)): $(o)/%.txt: $(patsubst %.html,%.txt,$(DOCS)) $(BUILDSYS)/doc-defs
        $(M)"DOC-DEFS $@"
        $(Q)echo $@: $(DOC_HEAD) $(DOC_LIST) >> $(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
index 2e2ceffb49204332640e92754579f3e9f16f74bf..54698d2f09ea0fa6ac742a800b22a79683af194f 100644 (file)
@@ -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
index 7080e0f3deaa221f2dd7b85c32c14e2754f0251b..c08913f8a3f22f12e98a39f925d17ba67fff5094 100644 (file)
@@ -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)
index db4d1243343db8885a6cd5aba13757ed5e2ebf9e..db3a8c7c481f016a74bcc75630ee74d027eca1ea 100644 (file)
@@ -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
index 1b970e50fa8e040c1776e077a9b58e8799c92c87..633ca09856e6c22b0fdb1b864b577a3b5a98b8e5 100644 (file)
@@ -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
index 69133c19d4e9923f69de1347a7e8e8a61758cb76..8f2be3f6e36047239d43990468e1f0b0ba799807 100644 (file)
@@ -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 $(<D) run/include/ucw $(LIBUCW_INCLUDES)
-       $(Q)$(BUILDSYS_PATH)/install-includes $(o)/ucw run/include/ucw autoconf.h
+       $(Q)$(BUILDSYS)/install-includes $(<D) run/include/ucw $(LIBUCW_INCLUDES)
+       $(Q)$(BUILDSYS)/install-includes $(o)/ucw run/include/ucw autoconf.h
        $(Q)sed -e 's/^#include "autoconf\.h"/#include <ucw\/autoconf.h>/' <$(s)/ucw/config.h >run/include/ucw/config.h
        $(Q)touch $@
 run/lib/pkgconfig/libucw.pc: $(o)/ucw/libucw.pc
index 0d6f9d267355d0e1cf329e8c5c38031e7fb89b32..042d14ce917af60beffba67195163c70275f3835 100644 (file)
@@ -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?)");