Skip to content

Commit cc7e182

Browse files
committed
additional work on lib deps stuff
1 parent 9fdf97a commit cc7e182

File tree

27 files changed

+184
-176
lines changed

27 files changed

+184
-176
lines changed

cfengine/.sipxecs.mk

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ cfengine_SOURCES = \
77
$(SRC)/$(PROJ)/cf-serverd \
88
$(SRC)/$(PROJ)/cf-execd
99

10-
# targets not defined, nothing to do
11-
cfengine.autoreconf cfengine.configure cfengine.dist :;
10+
cfengine.dist :;

config/lang.am

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
#
44
# Language utlity functions for projects building localization packages
55

6-
include config/utility.am
7-
86
# use lowercase and hyphens to be backward compatible with previous sipxecs versions
97
STDPROMPTS_LANG_ID = $(call lowercase,$(subst _,-,@LANG_ID@))
108

119
promptsdir = $(datadir)/www/doc/stdprompts_$(STDPROMPTS_LANG_ID)
1210
confplugindir = @SIPX_JAVADIR@/sipXconfig/plugins
1311
ivrplugindir = @SIPX_JAVADIR@/sipXivr
1412

13+
@PACKAGE@-dist-specfile :
14+
@$(call SearchAndReplace,$(srcdir)/sipxlang-@LANG_ID@.spec.in,$(distdir)/sipxlang-@LANG_ID@.spec, $(dist_EXTRA_REPLACE))
15+
1516
sipxlang-%.jar :
1617
jar -cf $@ -C $(srcdir)/sipxpbx .
1718

configure.ac

-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ m4_include([mak/centos-iso.m4])
2525
m4_sinclude([custom/custom.m4])
2626

2727
AC_CONFIG_FILES([Makefile])
28-
AC_CONFIG_FILES([mak/00-modules.mk:mak/modules.mk.in])
29-
AC_CONFIG_FILES([mak/01-app.mk:mak/app.mk.in])
3028
AC_CONFIG_FILES([mak/05-build.mk:mak/build.mk.in])
3129
AC_CONFIG_FILES([mak/20-list-dependencies.mk:mak/list-dependencies.mk.in])
3230

epel-release/.sipxecs.mk

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
epel-release_SRPM=epel-release-6-5.src.rpm
22

3-
# targets not defined, nothing to do
4-
epel-release.autoreconf epel-release.configure epel-release.dist:;
3+
epel-release.dist:;

erlmongo/.sipxecs.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ erlmongo_SOURCES = $(erlmongo_TARBALL)
55
erlmongo_SRPM = erlmongo-$(erlmongo_VER)-$(erlmongo_REV)$(RPM_DIST).src.rpm
66
erlmongo_TARBALL = erlmongo-$(erlmongo_VER).tar.gz
77

8-
erlmongo.autoreconf erlmongo.configure erlmongo.dist:;
8+
erlmongo.dist:;
99

1010
# Helpful for package maintainer when you want to pull in new changes from erlmongo project
1111
erlmongo.update_dist :

hiredis/.sipxecs.mk

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
hiredis_SRPM=hiredis-0.10.1-4.fc18.src.rpm
22

3-
# targets not defined, nothing to do
4-
hiredis.autoreconf hiredis.configure hiredis.dist:;
3+
hiredis.dist:;

js/.sipxecs.mk

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ js_SOURCES = js-1.7.0.tar.gz \
1010
$(SRC)/$(PROJ)/js-perlconnect.patch \
1111
$(SRC)/$(PROJ)/js-shlib.patch
1212

13-
# targets not defined, nothing to do
14-
js.autoreconf js.configure js.dist:;
13+
js.dist:;

mak/OpenACD.sipxecs.mk

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# See ./src/OpenACD.app.src for matching version number. Please keep in sync,
2+
# but not strictly nec.
3+
OpenACD_VER = 0.9.5
4+
5+
OpenACD_REV = $(shell cd $(SRC)/$(PROJ); ../config/revision-gen $(OpenACD_VER))
6+
OpenACD_SRPM = openacd-$(OpenACD_VER)-$(OpenACD_REV).src.rpm
7+
OpenACD_TAR = OpenACD/OpenACD.tar.gz
8+
OpenACD_SRPM_DEFS = --define "buildno $(OpenACD_REV)"
9+
OpenACD_RPM_DEFS = --define="buildno $(OpenACD_REV)"
10+
11+
OpenACD.dist :
12+
test -d OpenACD || mkdir -p OpenACD
13+
make -C $(SRC)/OpenACD dist DESTDIR=$(abspath .)/OpenACD/

mak/app.mk.in

-52
This file was deleted.

mak/build.mk.in

+17-20
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,17 @@
44
OPTIONS = @OPTIONS@
55
DOWNLOAD_LIB_CACHE = @DOWNLOAD_LIB_CACHE@
66

7+
# pull in dependency make fragments
8+
include $(SRC)/mak/modules.mk
9+
include $(SRC)/mak/*.sipxecs.mk
10+
include $(SRC)/*/.sipxecs.mk
11+
712
help.sipx=Build all sipx components including targets autoreconf, configure, all and install targets
813
build sipx :
914
$(MAKE) $(foreach P,$(sipx),$(P))
1015

11-
help.app=Build all sipx apps including targets autoreconf, configure, all and install targets
12-
app :
13-
$(MAKE) $(foreach P,$(app),$(P))
14-
15-
# pull in dependency make fragments
16-
include $(SRC)/*/.sipxecs.mk
17-
include $(SRC)/mak/*.sipxecs.mk
18-
1916
# Only the main rpm
20-
$(foreach P,$(sipx) $(app),$(eval $(P)_TAR = $(P)/$$(call lowercase,$(P))-$(PACKAGE_VERSION).tar.gz))
17+
$(foreach P,$(sipx),$(eval $(P)_TAR = $(P)/$$(call lowercase,$(P))-$(PACKAGE_VERSION).tar.gz))
2118

2219
# Initialize submodules as we need them and only the specific submodule. This allows
2320
# many submodules to be defined, but only requested submodules to be loaded. There
@@ -31,9 +28,9 @@ $(SRC)/%/.git :
3128
git submodule init $*; \
3229
git submodule update $*
3330

34-
.PHONY:$(sipx) $(app)
31+
.PHONY:$(sipx)
3532
.SECONDEXPANSION:
36-
$(sipx) $(app) : $$($$@_DEPS) $$($$@_GIT_SUBMODULE)
33+
$(sipx) : $$($$@_DEPS) $$($$@_GIT_SUBMODULE)
3734
@echo "$$rm_on_deps_change" | \
3835
DEP_TARGETS="$(addprefix $(PROJ)/,$($@_DEPS=.installed))" \
3936
TARGET=$(PROJ)/.installed \
@@ -43,10 +40,10 @@ $(sipx) $(app) : $$($$@_DEPS) $$($$@_GIT_SUBMODULE)
4340
touch $(PROJ)/.installed; \
4441
fi
4542

46-
$(foreach T,$(sipx) $(app),$(T).build) : %.build : %.autoreconf %.configure %.all-install;
43+
$(foreach T,$(sipx),$(T).build) : %.build : %.autoreconf %.configure %.all-install;
4744

4845
help.{1|6}.all-install=Run 'make all install' in each target
49-
$(foreach T,$(sipx) $(app),$(T).all-install) : %.all-install : %.all %.install ;
46+
$(foreach T,$(sipx),$(T).all-install) : %.all-install : %.all %.install ;
5047

5148
# Targets for sipx and lib. Uses pattern %.xyz so libs can implement their own
5249
# implementation that will override the patterned one. i.e. freeswitch.autoreconf
@@ -58,7 +55,7 @@ help.{1|2|6}.autoreconf=Run autoreconf on each project
5855
autoreconf -if
5956

6057
# TODO: Needs to support switching branches automatically
61-
$(foreach P,$(sipx) $(app) $(lib),$(SRC)/$(P)) : $(SRC)/% :
58+
$(foreach P,$(all),$(SRC)/$(P)) : $(SRC)/% :
6259
git clone $($*_REPO) $*.git
6360
mv $*.git $@
6461

@@ -70,11 +67,11 @@ help.{1|2|6}.configure = Run configure on each project
7067

7168
.SECONDEXPANSION:
7269
help.{1|2|6}.dist-only : Force a build of the archive (tarball) for this project
73-
$(sipx:=.dist-only) $(app:=.dist-only) : %.dist-only : %.autoreconf %.configure %.dist_;
70+
$(sipx:=.dist-only) : %.dist-only : %.autoreconf %.configure %.dist_;
7471
%.dist_ :
7572
$(MAKE) -C $(PROJ) dist
7673
help.{1|2|6}.dist = Build archive, typically compressed tar
77-
$(sipx:=.dist) $(app:=.dist): %.dist : $$(addsuffix .dist,$$(filter-out $$(lib_all),$$($$*_DEPS))) $$($$*_GIT_SUBMODULE)
74+
$(sipx:=.dist): %.dist : $$(addsuffix .dist,$$(filter-out $$(lib_all),$$($$*_DEPS))) $$($$*_GIT_SUBMODULE)
7875
@if test -f $($(PROJ)_TAR) ; then \
7976
x=`find $(SRC)/$(PROJ)/ -type f \( \
8077
-not -name configure \
@@ -102,16 +99,16 @@ $(sipx:=.dist) $(app:=.dist): %.dist : $$(addsuffix .dist,$$(filter-out $$(lib_a
10299
# Targets for sipx only.
103100
MAKE_COMMANDS = check install clean dist
104101
$(foreach C,$(MAKE_COMMANDS) all,$(eval help.{1}.$(C)=Run make $(C) on each project))
105-
$(foreach P,$(sipx) $(app),$(P).install) :; $(MAKE) -C $(PROJ) install
106-
$(foreach P,$(sipx) $(app),$(P).clean) :
102+
$(foreach P,$(sipx),$(P).install) :; $(MAKE) -C $(PROJ) install
103+
$(foreach P,$(sipx),$(P).clean) :
107104
$(MAKE) -C $(PROJ) clean
108105
! test -f $(PROJ)/.installed || rm $(PROJ)/.installed
109106

110-
$(foreach P,$(sipx) $(app),$(P).check) :; $(MAKE) -C $(PROJ) check
107+
$(foreach P,$(sipx),$(P).check) :; $(MAKE) -C $(PROJ) check
111108

112109
# projects do not all have an "all" target, they probably should, until then, use
113110
# no-target default
114-
$(foreach C,all,$(foreach T,$(sipx) $(app),$(T).all)) :
111+
$(foreach C,all,$(foreach T,$(sipx),$(T).all)) :
115112
$(MAKE) -C $(PROJ)
116113

117114
# This first checks if any files have changed in a project, if not, then

mak/homer.sipxecs.mk

+3
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ homer_REV = 2
33
homer_SRPM = homer-$(homer_VER)-$(homer_REV)$(RPM_DIST).src.rpm
44
homer_SPEC = $(SRC)/$(PROJ)/homer.spec
55
homer_SOURCES = $(BUILDDIR)/$(PROJ)/homer-$(homer_VER).tar.gz
6+
7+
homer.dist : homer.autoreconf homer.configure homer.dist_
8+

0 commit comments

Comments
 (0)