* 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
* 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 <rneider AT web.de>
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
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"
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])
else
-SUBDIRS = libsdcc
+SUBDIRS = libsdcc libdev
builddir = build
installdir = bin
export installdir
SDCC_BASE = ../../../..
INSTALL_DIR = ../bin
+VPATH = @srcdir@
+srcdir = @srcdir@
+
CC = $(SDCC_BASE)/bin/sdcc
LIB = @GPLIB@
CP = @CP@
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))
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