From: bernhardheld Date: Fri, 28 Apr 2006 22:03:38 +0000 (+0000) Subject: * configure, X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=a8e264a929f170ce24db46655dfeb9de1b3eca1d;p=fw%2Fsdcc * configure, * configure.in: replaced duplicate message about ucsim by missing sdcpp * install-sh: fix bug #1204398 by setting umask 0022 * device/lib/Makefile.in: separate build of z80 and gbz80 lib git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4137 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index b05ad604..9d866f07 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,14 @@ * device/lib/ds390/Makefile.in, * device/lib/ds400/Makefile.in: added srcdir to include search path, thanks to Borut for the bug report + * configure.in, + * configure: always create doc/Makefile independent from --enable-doc + * Makefile.in: always install from directory doc independent from + --enable-doc + * device/lib/pic/Makefile.in: added libdev again, it was erroneously + removed + * device/lib/pic/libdev/Makefile.in: fixed VPATH build + * doc/Makefile.in: install *.txt if present 2006-04-28 Raphael Neider diff --git a/Makefile.in b/Makefile.in index 8942a698..380db751 100644 --- a/Makefile.in +++ b/Makefile.in @@ -51,8 +51,9 @@ endif ifeq ($(OPT_ENABLE_DOC), 1) TARGETS += sdcc-doc -PKGS += $(SDCC_DOC) endif +# always install docs, which don't need to be built +PKGS += $(SDCC_DOC) ifeq ($(OPT_DISABLE_SDCPP), 0) SDCC_LIBS += support/cpp2 diff --git a/configure b/configure index 997f3ba6..dbc1dcc8 100755 --- a/configure +++ b/configure @@ -7946,7 +7946,7 @@ test $OPT_DISABLE_UCSIM = 0 && subdirs="$subdirs sim/ucsim" -test $OPT_ENABLE_DOC = 1 && ac_config_files="$ac_config_files doc/Makefile" + ac_config_files="$ac_config_files doc/Makefile" test $OPT_DISABLE_AVR = 0 && ac_config_files="$ac_config_files src/avr/Makefile" diff --git a/configure.in b/configure.in index 21fb14e8..53753adf 100755 --- a/configure.in +++ b/configure.in @@ -628,7 +628,7 @@ mv ports ports.build test $OPT_DISABLE_SDCPP = 0 && AC_CONFIG_SUBDIRS(support/cpp2) test $OPT_DISABLE_PACKIHX = 0 && AC_CONFIG_SUBDIRS(packihx) test $OPT_DISABLE_UCSIM = 0 && AC_CONFIG_SUBDIRS(sim/ucsim) -test $OPT_ENABLE_DOC = 1 && AC_CONFIG_FILES([doc/Makefile]) +AC_CONFIG_FILES([doc/Makefile]) test $OPT_DISABLE_AVR = 0 && AC_CONFIG_FILES([src/avr/Makefile]) diff --git a/device/lib/pic/Makefile.in b/device/lib/pic/Makefile.in index 6eebdffb..29ad0cc9 100644 --- a/device/lib/pic/Makefile.in +++ b/device/lib/pic/Makefile.in @@ -29,7 +29,7 @@ all % : else -SUBDIRS = libsdcc +SUBDIRS = libsdcc libdev builddir = build installdir = bin export installdir diff --git a/device/lib/pic/libdev/Makefile.in b/device/lib/pic/libdev/Makefile.in index f15d02ee..451b2398 100644 --- a/device/lib/pic/libdev/Makefile.in +++ b/device/lib/pic/libdev/Makefile.in @@ -1,6 +1,9 @@ SDCC_BASE = ../../../.. INSTALL_DIR = ../bin +VPATH = @srcdir@ +srcdir = @srcdir@ + CC = $(SDCC_BASE)/bin/sdcc LIB = @GPLIB@ CP = @CP@ @@ -9,7 +12,7 @@ RMDIR = @RMDIR@ CPPFLAGS = -I$(srcdir)/../../../include/pic -C_SRC = $(wildcard pic16*.c) +C_SRC = $(notdir $(wildcard $(srcdir)/pic16*.c)) OBJS = $(C_SRC:.c=.o) LIBS = $(addprefix $(INSTALL_DIR)/,$(OBJS:.o=.lib)) diff --git a/doc/Makefile.in b/doc/Makefile.in index 1b15441e..b483ac11 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -22,7 +22,8 @@ all: $(MANUAL).pdf $(MANUAL).html/index.html $(MANUAL).txt \ install: $(INSTALL) -d $(DESTDIR)$(docdir) cp -rf $(srcdir)/*.txt $(srcdir)/z80 $(srcdir)/avr $(DESTDIR)$(docdir) - cp -rf *.txt $(DESTDIR)$(docdir) + txtfiles=`echo *.txt | grep -v '\*\.txt' || true` + if [ $(txtfiles) ]; then cp $(txtfiles) $(DESTDIR)$(docdir); fi if [ -f $(MANUAL).html/index.html ]; then cp -rf $(MANUAL).html $(DESTDIR)$(docdir); fi if [ -f $(TSS).html/index.html ]; then cp -rf $(TSS).html $(DESTDIR)$(docdir); fi if [ -f $(CDB).html/index.html ]; then cp -rf $(CDB).html $(DESTDIR)$(docdir); fi