summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-07-06 10:37:16 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-07-06 10:37:16 +0000
commit75cab8ce079d674fa9432c61634f3499543e2f5b (patch)
tree5ff8d3fc817ad3018f5619864b016121e2ca703c /Makefile
parent2a116f15a11d30ef72bf8401d6ba7c5aaf01e285 (diff)
* Copied over the old zaptel.conf sample as doc/system.conf .
* Fixed installation of system.conf and man pages in main Makefile. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4543 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5e2b44f..f73dce7 100644
--- a/Makefile
+++ b/Makefile
@@ -91,6 +91,8 @@ BIN_DIR:=$(sbindir)
LIB_DIR:=$(libdir)
INC_DIR:=$(includedir)/dahdi
MAN_DIR:=$(mandir)/man8
+CONFIG_DIR:=$(sysconfdir)/dahdi
+CONFIG_FILE:=$(CONFIG_DIR)/system.conf
# Utilities we build with a standard build procedure:
UTILS = dahdi_tool dahdi_test dahdi_monitor dahdi_speed sethdlc dahdi_cfg \
@@ -178,7 +180,7 @@ tonezones.txt: zonedata.c
print (($$1 eq "country")? "* $$2\t":"$$2\n");' $< \
>$@
-system.conf.asciidoc: system.conf.sample
+system.conf.asciidoc: doc/system.conf
perl -n -e \
'if (/^#($$|\s)(.*)/){ if (!$$in_doc){print "\n"}; $$in_doc=1; print "$$2\n" } else { if ($$in_doc){print "\n"}; $$in_doc=0; print " $$_" }' \
$< >$@
@@ -217,11 +219,11 @@ install-utils: utils install-utils-subdirs
ifneq (,$(BINS))
install -d $(DESTDIR)$(BIN_DIR)
install $(BINS) $(DESTDIR)$(BIN_DIR)/
-# install -d $(DESTDIR)$(MAN_DIR)
-# install -m 644 $(MAN_PAGES) $(DESTDIR)$(MAN_DIR)/
+ install -d $(DESTDIR)$(MAN_DIR)
+ install -m 644 $(MAN_PAGES) $(DESTDIR)$(MAN_DIR)/
endif
ifeq (,$(wildcard $(DESTDIR)$(CONFIG_FILE)))
-# $(INSTALL) -D -m 644 system.conf.sample $(DESTDIR)$(CONFIG_FILE)
+ $(INSTALL) -D -m 644 doc/system.conf $(DESTDIR)$(CONFIG_FILE)
endif
install-libs: libs