[Freeswitch-svn] [commit] r11670 - freeswitch/trunk
FreeSWITCH SVN
mikej at freeswitch.org
Fri Feb 6 10:46:12 PST 2009
Author: mikej
Date: Fri Feb 6 12:46:12 2009
New Revision: 11670
Log:
build: fix configure --sysconfdir (FSBUILD-84)
Modified:
freeswitch/trunk/Makefile.am
Modified: freeswitch/trunk/Makefile.am
==============================================================================
--- freeswitch/trunk/Makefile.am (original)
+++ freeswitch/trunk/Makefile.am Fri Feb 6 12:46:12 2009
@@ -206,25 +206,26 @@
yaml-files:
- @echo `mkdir $(DESTDIR)$(prefix)/conf/yaml 2>/dev/null`
- $(INSTALL) -m 644 conf/yaml/*.yaml $(DESTDIR)$(prefix)/conf/yaml
+ @echo `mkdir $(DESTDIR)@confdir@/yaml 2>/dev/null`
+ $(INSTALL) -m 644 conf/yaml/*.yaml $(DESTDIR)@confdir@/yaml
vm-sync:
- test -d $(DESTDIR)$(prefix)/conf || $(mkinstalldirs) $(DESTDIR)$(prefix)/conf
- test -d $(DESTDIR)$(prefix)/conf/lang || $(mkinstalldirs) $(DESTDIR)$(prefix)/conf/lang
- test -d $(DESTDIR)$(prefix)/conf/lang/en || $(mkinstalldirs) $(DESTDIR)$(prefix)/conf/lang/en
- test -d $(DESTDIR)$(prefix)/conf/lang/en/vm || $(mkinstalldirs) $(DESTDIR)$(prefix)/conf/lang/en/vm
- $(INSTALL) -m 644 conf/lang/en/vm/* $(DESTDIR)$(prefix)/conf/lang/en/vm
+ test -d $(DESTDIR)@confdir@ || $(mkinstalldirs) $(DESTDIR)@confdir@
+ test -d $(DESTDIR)@confdir@/lang || $(mkinstalldirs) $(DESTDIR)@confdir@/lang
+ test -d $(DESTDIR)@confdir@/lang/en || $(mkinstalldirs) $(DESTDIR)@confdir@/lang/en
+ test -d $(DESTDIR)@confdir@/lang/en/vm || $(mkinstalldirs) $(DESTDIR)@confdir@/lang/en/vm
+ $(INSTALL) -m 644 conf/lang/en/vm/* $(DESTDIR)@confdir@/lang/en/vm
samples-conf:
- test -d $(DESTDIR)$(prefix)/conf || $(mkinstalldirs) $(DESTDIR)$(prefix)/conf
+ test -d $(DESTDIR)@confdir@/ || $(mkinstalldirs) $(DESTDIR)@confdir@
for conffile in `find conf -name \*.xml && find conf -name \*.conf && find conf -name \*.tpl && find conf -name \*.ttml && find conf -name mime.types` ; do \
- dir=`echo $$conffile | sed -e 's|/[^/]*$$||'`; \
+ src_dir=`echo $$conffile | sed -e 's|/[^/]*$$||'`; \
+ dir=`echo $$src_dir | sed -e 's|conf||'`; \
filename=`echo $$conffile | sed -e 's|^.*/||'`; \
- test -d $(DESTDIR)$(PREFIX)/$$dir || $(mkinstalldirs) $(DESTDIR)$(prefix)/$$dir ; \
- test -f $(DESTDIR)$(PREFIX)/$$dir/$$filename || \
- test -f $(DESTDIR)$(PREFIX)/$$dir/$$filename.noload || \
- $(INSTALL) -m 644 $$dir/$$filename $(DESTDIR)$(PREFIX)/$$dir; \
+ test -d $(DESTDIR)@confdir@/$$dir || $(mkinstalldirs) $(DESTDIR)@confdir@/$$dir ; \
+ test -f $(DESTDIR)@confdir@/$$dir/$$filename || \
+ test -f $(DESTDIR)@confdir@/$$dir/$$filename.noload || \
+ $(INSTALL) -m 644 $$src_dir/$$filename $(DESTDIR)@confdir@/$$dir; \
done
samples-htdocs:
@@ -244,7 +245,7 @@
$(mkinstalldirs) $(DESTDIR)$(prefix)/$$x ; \
done
$(mkinstalldirs) $(DESTDIR)@modinstdir@
- test -d $(DESTDIR)$(prefix)/conf || $(MAKE) samples-conf
+ test -d $(DESTDIR)@confdir@ || $(MAKE) samples-conf
test -d $(DESTDIR)$(prefix)/htdocs || $(MAKE) samples-htdocs
.version:
@@ -429,7 +430,7 @@
-e "s, at LIB_DIR\@, at libdir@," \
-e "s, at BIN_DIR\@, at bindir@," \
-e "s, at INC_DIR\@, at includedir@," \
- -e "s, at CFG_DIR\@,$(PREFIX)/conf," \
+ -e "s, at CFG_DIR\@, at confdir@," \
-e "s, at DB_DIR\@,$(PREFIX)/db," \
-e "s, at PREFIX\@,$(PREFIX)," \
-e "s, at CC\@,$(CC)," \
More information about the Freeswitch-svn
mailing list