[zaptel-commits] tzafrir: branch 1.2 r2840 - /branches/1.2/Makefile
SVN commits to the Zaptel project
zaptel-commits at lists.digium.com
Wed Aug 15 10:27:14 CDT 2007
Author: tzafrir
Date: Wed Aug 15 10:27:13 2007
New Revision: 2840
URL: http://svn.digium.com/view/zaptel?view=rev&rev=2840
Log:
Fixing installation targets:
- programs/install-programs - userspace utilities.
- libs/install-libs - libtonezone
- modules/install-modules - kernel stuff
Those can be used independently.
Modified:
branches/1.2/Makefile
Modified: branches/1.2/Makefile
URL: http://svn.digium.com/view/zaptel/branches/1.2/Makefile?view=diff&rev=2840&r1=2839&r2=2840
==============================================================================
--- branches/1.2/Makefile (original)
+++ branches/1.2/Makefile Wed Aug 15 10:27:13 2007
@@ -195,9 +195,11 @@
endif
MAN_PAGES = $(MAN_PAGES_BASE:%=doc/%.8)
-all: programs modules $(LIBTONEZONE_SO)
+all: programs modules libs
programs: $(BINS)
+
+libs: $(LIBTONEZONE_SO)
ifeq ($(BUILDVER),linux24)
modules: prereq $(MODULESO) wct4xxp/wct4xxp.o
@@ -402,30 +404,7 @@
tar -zxf mISDNuser.tar.gz
$(MAKE) -C mISDNuser install
-install: all devices install-modules install-libs install-include firmware
- install -D -m 755 ztcfg $(DESTDIR)$(SBINDIR)/ztcfg
-ifneq (,$(wildcard sethdlc-new))
- install -D -m 755 sethdlc-new $(DESTDIR)$(SBINDIR)/sethdlc
-else
- ifneq (,$(wildcard sethdlc))
- install -D -m 755 sethdlc $(DESTDIR)$(SBINDIR)/sethdlc
- endif
-endif
-ifneq (,$(wildcard zttool))
- install -D -m 755 zttool $(DESTDIR)$(SBINDIR)/zttool
-endif
- install -d $(DESTDIR)$(MANDIR)
- install -m 644 $(MAN_PAGES) $(DESTDIR)$(MANDIR)
-ifeq (,$(wildcard $(DESTDIR)$(CONFIG_FILE)))
- install -D -m 644 zaptel.conf.sample $(DESTDIR)$(CONFIG_FILE)
-endif
- build_tools/genmodconf $(BUILDVER) "$(DESTDIR)" "$(filter-out zaptel ztdummy zttranscode wctc4xxp ztdynamic xpp_usb,$(MODULES)) $(MODULE_ALIASES)"
-ifeq (,$(DESTDIR))
- @if [ -d /etc/modutils ]; then \
- /sbin/update-modules ; \
- fi
-endif
-
+install: all devices install-modules install-libs firmware
@echo "###################################################"
@echo "###"
@echo "### Zaptel installed successfully."
@@ -435,6 +414,34 @@
@echo "###"
@echo "###################################################"
+install-programs: programs
+ install -d $(DESTDIR)$(SBINDIR)
+ install -m 755 $(BINS) $(DESTDIR)$(SBINDIR)
+ifneq (,$(wildcard sethdlc-new))
+ install -D -m 755 sethdlc-new $(DESTDIR)$(SBINDIR)/sethdlc
+else
+ ifneq (,$(wildcard sethdlc))
+ install -D -m 755 sethdlc $(DESTDIR)$(SBINDIR)/sethdlc
+ endif
+endif
+ install -d $(DESTDIR)$(MANDIR)
+ install -m 644 $(MAN_PAGES) $(DESTDIR)$(MANDIR)
+ install -d $(DESTDIR)$(INCLUDE_DIR)/linux
+ install -m 644 zaptel.h torisa.h $(DESTDIR)$(INCLUDE_DIR)/linux/
+ifeq (,$(wildcard $(DESTDIR)$(CONFIG_FILE)))
+ install -D -m 644 zaptel.conf.sample $(DESTDIR)$(CONFIG_FILE)
+endif
+
+# Pushing those two to a separate target that is not used by default:
+install-modconf:
+ build_tools/genmodconf $(BUILDVER) "$(DESTDIR)" "$(filter-out zaptel ztdummy zttranscode wctc4xxp ztdynamic xpp_usb,$(MODULES)) $(MODULE_ALIASES)"
+ifeq (,$(DESTDIR))
+ @if [ -d /etc/modutils ]; then \
+ /sbin/update-modules ; \
+ fi
+endif
+
+
# Specific to a kernel version:
install-modules: modules
ifeq ($(BUILDVER),linux26)
@@ -452,11 +459,7 @@
rm -f $(DESTDIR)$(MODS_DIR)/wcfxs.o
[ `id -u` = 0 ] && /sbin/depmod -a $(KVERS) || :
-install-programs: $(BINS)
- install -d $(DESTDIR)$(SBINDIR)
- install -m 755 $(BINS) $(DESTDIR)$(SBINDIR)
-
-install-libs: $(LIBTONEZONE_SO)
+install-libs: libs
install -D -m 755 $(LIBTONEZONE_SO) $(DESTDIR)$(LIBDIR)/$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER)
[ `id -u` = 0 ] && /sbin/ldconfig || :
rm -f $(DESTDIR)$(LIBDIR)/$(LIBTONEZONE_SO)
@@ -464,14 +467,11 @@
$(DESTDIR)$(LIBDIR)/$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER)
ln -sf $(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) \
$(DESTDIR)$(LIBDIR)/$(LIBTONEZONE_SO)
+ install -d $(DESTDIR)$(INCLUDE_DIR)
+ install -m 644 tonezone.h $(DESTDIR)$(INCLUDE_DIR)
ifneq (,$(SELINUX_ENABLED))
/sbin/restorecon -v $(DESTDIR)$(LIBDIR)/$(LIBTONEZONE_SO)
endif
-
-install-include:
- install -d $(DESTDIR)$(INCLUDE_DIR)/linux
- install -m 644 zaptel.h torisa.h $(DESTDIR)$(INCLUDE_DIR)/linux/
- install -m 644 tonezone.h $(DESTDIR)$(INCLUDE_DIR)
install-udev: devices
More information about the zaptel-commits
mailing list