~ubuntu-branches/ubuntu/trusty/isdnutils/trusty

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Package Import Robot
  • Author(s): Steve Langasek
  • Date: 2013-11-15 00:02:58 UTC
  • mfrom: (1.1.8) (31.1.1 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20131115000258-tt9v3gasgrdml07k
Tags: 1:3.25+dfsg1-3.3ubuntu1
* Merge from Debian unstable:
  - resolves licensing issues with package contents.  LP: #511988.
  - includes proper upstream fix for ipppd on ARM.  LP: #453159.
  - resolves isdnutils-base removal failures.  LP: #813771.
  - fixes capiutils init script to not try to mount obsolete capifs.
    LP: #1064347.
* Remaining changes:
  - Switch libreadline5-dev to libreadline-gplv2-dev since this package
    appears to be GPLv2
  - debian/patches/no-imake.patch: Don't build xisdnload/xmonisdn using
    xmkmf/imake.  This patch was dropped in Debian without explanation;
    it still applies and seems to still be a good idea for eventual
    upstreaming, since imake is quite obsolete.
  - capi.conf: Fix typo for fcdsl2 firmware. LP: #189132.
  - Remove dependencies on /etc/inittab.
    - Disable the installation code to modify /etc/inittab.
    - isdnutils-base: Add ttyI0 example script, which needs to be installed
      in /etc/event.d/ttyI0.
    - isdnvboxserver: Add ttyI1 example script, which needs to be installed
      in /etc/event.d/ttyI1.
    - The two upstart scripts need to be edited.
    - Further improvements and documentation welcome.
* Changes included in Debian:
  - replace calls to ./MAKEDEV with /sbin/MAKEDEV
  - Build-depend on ppp-dev.
  - Switch to newer tcl -dev.
  - update to newer automake
  - debian/rules: use autoreconf to update the autotools in the capi20
    directory
  - debian/{compat,rules,*.files,.dirs}: Convert to Multi-arch.
  - debian/libcapi20-dev.install: Remove .la files (no builds use them).
* Changes included upstream:
  - fix for ARM FTBFS.
  - fix bashisms in vboxplay.
  - debian/patches/{config_libdir,toplevel-make}.patch: add CONFIG_LIBDIR
    override to upstream build system to support Multi-arch.
* Dropped changes:
  - kick dpatch to the curb.
* Handle migrating the blacklist file from
  /etc/modprobe.d/blacklist-capiutils.conf to the path used in Debian,
  /etc/modprobe.d/capiutils.conf.
* Handle rename of /etc/ppp/ip-down.d/99-ipppd and /etc/ppp/ip-up.d/00-ipppd
  to /etc/ppp/ip-down.d/ipppd and /etc/ppp/ip-up.d/ipppd
* Handle rename of /etc/init.d/isdnutils to /etc/init.d/isdnutils-base
* Restore standard.tcl to /usr/share/isdnvboxserver/default; maintainer
  scripts must not depend on contents of /usr/share/doc.
* Apply patches that were preserved in the 3.0 (quilt) migration, but
  were inadvertently not applied:
  - debian/patches/capifax.additional_error_codes.patch
  - debian/patches/capifax.3_1kHz_audio.patch
* Drop debian/isdnutils-base.cron.d, which isn't a cronjob example at all
  but an inittab example gone astray.
* debian/dotconfig*: don't use embedded quotes for paths; this confuses
  vbox's Makefiles something fierce, and causes files to be missed from
  debian/tmp'/usr/share/man/' at install time.
* Fix isdnlog and ipppd to not ship files used in the postinst under
  /usr/share/doc.
* Modernize the upstart examples.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: Makefile,v 1.63 2007/11/26 13:13:44 keil Exp $
 
1
# $Id: Makefile,v 1.65 2008/08/31 11:38:16 keil Exp $
2
2
#
3
3
# Toplevel Makefile for isdn4k-utils
4
4
#
5
5
 
6
6
.EXPORT_ALL_VARIABLES:
7
7
 
8
 
export I4LVERSION = 3.12
 
8
export I4LVERSION = 3.25
9
9
 
10
10
all:    do-it-all
11
11
 
48
48
ifeq ($(CONFIG_ICNCTRL),y)
49
49
        SUBDIRS := $(SUBDIRS) icn
50
50
endif
51
 
ifeq ($(CONFIG_PCBITCTL),y)
52
 
        SUBDIRS := $(SUBDIRS) pcbit
53
 
endif
54
51
ifeq ($(CONFIG_HISAXCTRL),y)
55
52
        SUBDIRS := $(SUBDIRS) hisax
56
53
endif
130
127
                exit 1; \
131
128
        fi
132
129
 
133
 
install: rootperm
 
130
install:
134
131
        set -e; for i in `echo $(SUBDIRS)`; do $(MAKE) -C $$i install; done
135
 
        @if [ -c $(DESTDIR)/dev/isdnctrl0 ] && ls -l $(DESTDIR)/dev/isdnctrl0 | egrep "[[:space:]]45,[[:space:]]+64[[:space:]]" > /dev/null; \
 
132
        @: || if [ -c $(DESTDIR)/dev/isdnctrl0 ] && ls -l $(DESTDIR)/dev/isdnctrl0 | egrep "[[:space:]]45,[[:space:]]+64[[:space:]]" > /dev/null; \
136
133
        then \
137
134
                /bin/echo -e '(some) ISDN devices already exist, not creating them.\nUse scripts/makedev.sh manually if necessary.'; \
138
135
        else \
200
197
subconfig: scripts/autoconf.h
201
198
        @echo Selected subdirs: $(BUILD_ONLY) $(SUBDIRS)
202
199
        @set -e; for i in `echo $(BUILD_ONLY) $(SUBDIRS)`; do \
203
 
                if [ -x $$i/configure ] ; then \
204
 
                        /bin/echo -e "\nRunning configure in $$i ...\n"; sleep 1; \
205
 
                        (cd $$i; ./configure --sbindir=$(CONFIG_SBINDIR) --bindir=$(CONFIG_BINDIR) --mandir=$(CONFIG_MANDIR) --datadir=$(CONFIG_DATADIR) || $(MAKE) -C ../ ERRDIR=$$i cfgerror); \
 
200
                if [ $$i = eicon ] ; then \
 
201
                        /bin/echo -e "\nRunning configure in $$i ...\n"; sleep 1; \
 
202
                        (cd $$i; ./configure --with-sbin=$(CONFIG_SBINDIR) --bindir=$(CONFIG_BINDIR) --with-man=$(CONFIG_MANDIR) --datadir=$(CONFIG_DATADIR) --libdir=$(CONFIG_LIBDIR) --with-firmware=$(CONFIG_DATADIR) || $(MAKE) -C ../ ERRDIR=$$i cfgerror); \
 
203
                elif [ -x $$i/configure ] ; then \
 
204
                        /bin/echo -e "\nRunning configure in $$i ...\n"; sleep 1; \
 
205
                        (cd $$i; ./configure --sbindir=$(CONFIG_SBINDIR) --bindir=$(CONFIG_BINDIR) --mandir=$(CONFIG_MANDIR) --datadir=$(CONFIG_DATADIR) --libdir=$(CONFIG_LIBDIR) || $(MAKE) -C ../ ERRDIR=$$i cfgerror); \
206
206
                elif [ -f $$i/Makefile.in ] ; then \
207
207
                        /bin/echo -e "\nRunning make -f Makefile.in config in $$i ...\n"; sleep 1; \
208
208
                        $(MAKE) -C $$i -f Makefile.in config; \
233
233
mrproper: distclean
234
234
 
235
235
archive: distclean
236
 
        @(cd .. ;\
237
 
        ln -nfs isdn4k-utils isdn4k-utils-$(I4LVERSION) ;\
238
 
        mkdir -p distisdn ;\
239
 
        tar cvhzf distisdn/isdn4k-utils-$(I4LVERSION).tar.gz isdn4k-utils-$(I4LVERSION) ;\
240
 
        rm isdn4k-utils-$(I4LVERSION) )
 
236
        @(ln -nvfs $(ROOTDIR) ../isdn4k-utils-$(I4LVERSION) ;\
 
237
        mkdir -p ../distisdn ;\
 
238
        tar cvhzf ../distisdn/isdn4k-utils-$(I4LVERSION).tar.gz --exclude-vcs ../isdn4k-utils-$(I4LVERSION) ;\
 
239
        rm ../isdn4k-utils-$(I4LVERSION) )
241
240
 
242
241
distarch: distclean
243
 
        (cd .. ;\
244
 
        ln -nfs isdn4k-utils isdn4k-utils-$(I4LVERSION) ;\
245
 
        mkdir -p distisdn ;\
246
 
        tar -cvhz -X isdn4k-utils/distexclude -f distisdn/isdn4k-utils-$(I4LVERSION).tar.gz \
247
 
        isdn4k-utils-$(I4LVERSION) ;\
248
 
        rm isdn4k-utils-$(I4LVERSION) )
 
242
        (ln -nvfs $(ROOTDIR) ../isdn4k-utils-$(I4LVERSION) ;\
 
243
        mkdir -p ../distisdn ;\
 
244
        tar -cvhz -X distexclude -f ../distisdn/isdn4k-utils-$(I4LVERSION).tar.gz \
 
245
        --exclude-vcs ../isdn4k-utils-$(I4LVERSION) ;\
 
246
        rm ../isdn4k-utils-$(I4LVERSION) )
249
247
 
250
248
dist: distarch