[zaptel-commits] tzafrir: branch 1.4 r3396 - /branches/1.4/Makefile

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Mon Dec 10 14:53:43 CST 2007


Author: tzafrir
Date: Mon Dec 10 14:53:43 2007
New Revision: 3396

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3396
Log:
* Add a list of userspace subdirectories (just like for kernel).
* Make it saner to enable/disable them.

Modified:
    branches/1.4/Makefile

Modified: branches/1.4/Makefile
URL: http://svn.digium.com/view/zaptel/branches/1.4/Makefile?view=diff&rev=3396&r1=3395&r2=3396
==============================================================================
--- branches/1.4/Makefile (original)
+++ branches/1.4/Makefile Mon Dec 10 14:53:43 2007
@@ -97,6 +97,13 @@
 ifeq ($(findstring xpp,$(MENUSELECT_MODULES)),)
   BUILD_XPP:=yes
 endif
+
+SUBDIRS_UTILS_ALL:= xpp/utils ppp
+SUBDIRS_UTILS	:=
+ifeq ($(BUILD_XPP),yes)
+  SUBDIRS_UTILS	+= xpp/utils
+endif
+#SUBDIRS_UTILS	+= ppp
 
 TOPDIR_MODULES:=pciradio tor2 torisa wcfxo wct1xxp wctdm wcte11xp wcusb zaptel ztd-eth ztd-loc ztdummy ztdynamic zttranscode
 SUBDIR_MODULES:=wct4xxp wctc4xxp xpp wctdm24xxp wcte12xp
@@ -259,14 +266,14 @@
 
 libs: $(LTZ_SO) $(LTZ_A)
 
-xpp-utils:
-ifeq (yes,$(BUILD_XPP))
-	@$(MAKE) -C xpp/utils
-endif
+utils-subdirs:
+	@for dir in $(SUBDIRS_UTILS); do \
+		$(MAKE) -C $$dir; \
+	done
 
 programs: libs utils
 
-utils: $(BINS) xpp-utils
+utils: $(BINS) utils-subdirs
 
 modules: prereq
 	@if [ -z "$(KSRC)" -o ! -d "$(KSRC)" ]; then echo "You do not appear to have the sources for the $(KVERS) kernel installed."; exit 1 ; fi
@@ -445,7 +452,7 @@
 
 install-programs: install-utils install-libs install-include
 
-install-utils: utils install-xpp
+install-utils: utils install-utils-subdirs
 ifneq (,$(BINS))
 	install -d $(DESTDIR)$(BIN_DIR)
 	install  $(BINS) $(DESTDIR)$(BIN_DIR)/
@@ -488,10 +495,10 @@
 endif
 	$(INSTALL) -D -m 644 tonezone.h $(DESTDIR)$(INC_DIR)/tonezone.h
 
-install-xpp:
-ifeq (yes,$(BUILD_XPP))
-	@$(MAKE) -C xpp/utils install
-endif
+install-utils-subdirs:
+	@for dir in $(SUBDIRS_UTILS); do \
+		$(MAKE) -C $$dir install; \
+	done
 
 install-include:
 	$(INSTALL) -D -m 644 zaptel.h $(DESTDIR)$(INC_DIR)/zaptel.h
@@ -608,10 +615,12 @@
   ifneq (,$(KSRC))
 	$(KMAKE) clean
   endif
-	$(MAKE) -C xpp/utils clean
 else
 	$(MAKE) -C wct4xxp clean
 endif
+	@for dir in $(SUBDIRS_UTILS_ALL); do \
+		$(MAKE) -C $$dir clean; \
+	done
 	$(MAKE) -C firmware clean
 	rm -rf .tmp_versions
 	rm -f gendigits tones.h
@@ -656,6 +665,6 @@
 
 .EXPORT_ALL_VARIABLES:
 
-.PHONY: menuselect distclean dist-clean clean version.h all _all install b410p devices programs modules tests devel data stackcheck install-udev config update install-programs install-modules install-include install-libs install-xpp xpp-utils uninstall-modules
-
-endif
+.PHONY: menuselect distclean dist-clean clean version.h all _all install b410p devices programs modules tests devel data stackcheck install-udev config update install-programs install-modules install-include install-libs install-utils-subdirs utils-subdirs uninstall-modules
+
+endif




More information about the zaptel-commits mailing list