~ubuntu-branches/ubuntu/trusty/libcdk5/trusty

« back to all changes in this revision

Viewing changes to Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): John Goerzen
  • Date: 2007-06-06 03:54:31 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070606035431-ba4gdvw0h6ybffsu
Tags: 5.0.20060507-1
* New upstream release.
* Fixed header patching.  Patch from Robert Schiele.
  Closes: #402978, #416336.
* Update widget count in description.  Closes: #294709.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: Makefile.in,v 1.66 2005/04/24 23:06:20 tom Exp $
 
1
# $Id: Makefile.in,v 1.74 2006/04/17 23:13:49 tom Exp $
2
2
#
3
 
#  Copyright 2001-2004,2005 Thomas Dickey
 
3
#  Copyright 2001-2005,2006 Thomas Dickey
4
4
#  Copyright 1999, Mike Glover
5
5
#  All rights reserved.
6
6
#
64
64
DOCUMENT_DIR    = $(prefix)/doc/cdk
65
65
INCLUDE_DIR     = $(includedir)/cdk
66
66
LIB_DIR         = $(libdir)
67
 
MAN_DIR         = $(mandir)/man3
 
67
MAN_DIR         = $(mandir)/man@MAN_DIR@
 
68
MANSECT         = @MANSECT@
68
69
 
69
70
CC              = @CC@
70
71
CPP             = @CPP@
95
96
 
96
97
.SUFFIXES: .c .o .os .i
97
98
 
98
 
DEFAULT         = $(CDKLIB) headers.sed
 
99
DEFAULT         = $(CDKLIB)
99
100
 
100
101
default :: $(DEFAULT)
101
102
 
176
177
                calendar.c \
177
178
                cdk.c \
178
179
                cdk_compat.c \
 
180
                cdk_display.c \
179
181
                cdk_objs.c \
180
182
                cdk_params.c \
181
183
                cdkscreen.c \
219
221
                cdk_compat.3 \
220
222
                cdk_dialog.3 \
221
223
                cdk_display.3 \
 
224
                cdk_draw.3 \
222
225
                cdk_entry.3 \
223
226
                cdk_fscale.3 \
224
227
                cdk_fselect.3 \
265
268
        @echo creating $@; $(LIBTOOL_CREATE) $@ $(LIB_OBJECT)
266
269
        @$(RANLIB) $@
267
270
 
268
 
cdkshlib $(CDKSHLIB) :: $(CDKSHOBJS) headers.sed
 
271
cdkshlib $(CDKSHLIB) :: $(CDKSHOBJS)
269
272
        gcc -shared -Wl,-soname=$(SONAME) $(LDFLAGS) -o $(CDKSHLIB) $(CDKSHOBJS)
270
273
 
271
274
#
320
323
# This installs the CDK man pages.
321
324
#
322
325
install \
323
 
installCDKManPages :: headers.sed $(AUTO_MAN) $(MAN_DIR)
 
326
installCDKManPages ::  $(INCLUDE_DIR) headers.sed $(MAN_DIR) manpage.sed $(AUTO_MAN)
324
327
        @echo "Installing the CDK man pages in $(MAN_DIR) ..."
325
328
        @for i in $(AUTO_MAN); do \
326
 
           $(SHELL) $(srcdir)/headers.sh -x "$(INSTALL_DATA)" -d $(MAN_DIR) -s . $$i; \
327
 
           $(SHELL) $(srcdir)/manlinks.sh installing $(srcdir) $(MAN_DIR) $$i;  \
 
329
           $(SHELL) $(srcdir)/headers.sh \
 
330
                        -x "$(INSTALL_DATA)" \
 
331
                        -d $(MAN_DIR) \
 
332
                        -s . \
 
333
                        -t $(MANSECT) \
 
334
                        -e manpage.sed $$i; \
 
335
           $(SHELL) $(srcdir)/manlinks.sh installing $(srcdir) $(MAN_DIR) $(MANSECT) $$i;  \
328
336
        done
329
337
        @for i in $(CDKMAN); do \
330
 
           $(SHELL) $(srcdir)/headers.sh -x "$(INSTALL_DATA)" -d $(MAN_DIR) -s . $(srcdir)/man/$$i; \
331
 
           $(SHELL) $(srcdir)/manlinks.sh installing $(srcdir) $(MAN_DIR) $(srcdir)/man/$$i;  \
 
338
           $(SHELL) $(srcdir)/headers.sh \
 
339
                        -x "$(INSTALL_DATA)" \
 
340
                        -d $(MAN_DIR) \
 
341
                        -s . \
 
342
                        -t $(MANSECT) \
 
343
                        -e manpage.sed $(srcdir)/man/$$i; \
 
344
           $(SHELL) $(srcdir)/manlinks.sh installing $(srcdir) $(MAN_DIR) $(MANSECT) $(srcdir)/man/$$i;  \
332
345
        done
333
346
 
334
347
uninstall \
335
348
uninstallCDKManPages ::
336
349
        @echo "Uninstalling the CDK man pages from $(MAN_DIR) ..."
337
350
        @- for i in $(AUTO_MAN); do \
338
 
           $(RM) $(MAN_DIR)/`basename $$i`; \
339
 
           $(SHELL) $(srcdir)/manlinks.sh removing $(srcdir) $(MAN_DIR) $(srcdir)/$$i; \
 
351
           $(SHELL) $(srcdir)/manlinks.sh removing $(srcdir) $(MAN_DIR) $(MANSECT) $(srcdir)/$$i; \
340
352
        done
341
353
        @- for i in $(CDKMAN); do \
342
 
           $(RM) $(MAN_DIR)/$$i; \
343
 
           $(SHELL) $(srcdir)/manlinks.sh removing $(srcdir) $(MAN_DIR) $(srcdir)/man/$$i; \
 
354
           $(SHELL) $(srcdir)/manlinks.sh removing $(srcdir) $(MAN_DIR) $(MANSECT) $(srcdir)/man/$$i; \
344
355
        done
345
356
 
346
357
#
347
358
# This installs the header files.
348
359
#
349
360
install \
350
 
installCDKHeaderFiles :: headers.sed $(MY_HDR) $(INCLUDE_DIR)
 
361
installCDKHeaderFiles ::  $(INCLUDE_DIR) headers.sed $(MY_HDR)
351
362
        @echo "Installing CDK header files in $(INCLUDE_DIR)..."
352
363
        $(SHELL) $(srcdir)/headers.sh -x "$(INSTALL_DATA)" -d $(INCLUDE_DIR) -s $(srcdir) $(MY_HDR)
353
364
        @for i in $(CDKHDR); do \
396
407
headers.sed : $(srcdir)/headers.sh
397
408
        $(SHELL) $(srcdir)/headers.sh -p CDK -c include/cdk_config.h -d $(INCLUDE_DIR) -s $(srcdir)/include -i -s include -i
398
409
 
 
410
manpage.sed :
 
411
        @echo "creating $@"
 
412
        @echo "s/(3)/($(MANSECT))/g" >$@
 
413
        @echo "/^\.TH/s/\<3\>/$(MANSECT)/" >>$@
 
414
 
399
415
@MAKE_LOWER_TAGS@tags :
400
416
@MAKE_LOWER_TAGS@       ctags *.[ch] */*.[ch]
401
417
 
409
425
        @- $(RM) -r autom4te.cache
410
426
        - $(LIBTOOL_CLEAN) $(RM) $(LIB_OBJECT) $(CDKLIB)
411
427
        - $(RM) *.i *.os $(CDKSHLIB)
412
 
        - $(RM) headers.sed core tags *~
 
428
        - $(RM) headers.sed manpage.sed core tags *~
413
429
        $(RM) $(AUTO_HDR)
414
430
        $(RM) $(AUTO_SRC)
415
431
        $(RM) $(AUTO_MAN)
467
483
SCALE_C         = $(srcdir)/gen-scale.c
468
484
SCALE_M         = $(srcdir)/man/gen-scale.3
469
485
 
 
486
MKDIR_MAN       = test -d man || mkdir man
 
487
 
470
488
include/dscale.h :      $(SCALE_H)
471
489
        $(GEN_SCALE) DSCALE DScale Double double $(SCALE_H) >$@
472
490
dscale.c :              $(SCALE_C) $(AUTO_HDR)
473
491
        $(GEN_SCALE) DSCALE DScale Double double $(SCALE_C) >$@
474
492
man/cdk_dscale.3 :      $(SCALE_M) man
 
493
        -$(MKDIR_MAN)
475
494
        $(GEN_SCALE) DSCALE DScale Double double $(SCALE_M) >$@
476
495
 
477
496
include/fscale.h :      $(SCALE_H)
479
498
fscale.c :              $(SCALE_C) $(AUTO_HDR)
480
499
        $(GEN_SCALE) FSCALE FScale Float float $(SCALE_C) >$@
481
500
man/cdk_fscale.3 :      $(SCALE_M) man
 
501
        -$(MKDIR_MAN)
482
502
        $(GEN_SCALE) FSCALE FScale Float float $(SCALE_M) >$@
483
503
 
484
504
include/scale.h :       $(SCALE_H)
486
506
scale.c :               $(SCALE_C) $(AUTO_HDR)
487
507
        $(GEN_SCALE) SCALE Scale Int int $(SCALE_C) >$@
488
508
man/cdk_scale.3 :       $(SCALE_M) man
 
509
        -$(MKDIR_MAN)
489
510
        $(GEN_SCALE) SCALE Scale Int int $(SCALE_M) >$@
490
511
 
491
512
include/uscale.h :      $(SCALE_H)
493
514
uscale.c :              $(SCALE_C) $(AUTO_HDR)
494
515
        $(GEN_SCALE) USCALE UScale Unsigned unsigned $(SCALE_C) >$@
495
516
man/cdk_uscale.3 :      $(SCALE_M) man
 
517
        -$(MKDIR_MAN)
496
518
        $(GEN_SCALE) USCALE UScale Unsigned unsigned $(SCALE_M) >$@
497
519
 
498
520
SLIDER_H        = $(srcdir)/include/gen-slider.h
504
526
fslider.c :             $(SLIDER_C) $(AUTO_HDR)
505
527
        $(GEN_SCALE) FSLIDER FSlider Float float $(SLIDER_C) >$@
506
528
man/cdk_fslider.3 :     $(SLIDER_M) man
 
529
        -$(MKDIR_MAN)
507
530
        $(GEN_SCALE) FSLIDER FSlider Float float $(SLIDER_M) >$@
508
531
 
509
532
include/slider.h :      $(SLIDER_H)
511
534
slider.c :              $(SLIDER_C) $(AUTO_HDR)
512
535
        $(GEN_SCALE) SLIDER Slider Int int $(SLIDER_C) >$@
513
536
man/cdk_slider.3 :      $(SLIDER_M) man
 
537
        -$(MKDIR_MAN)
514
538
        $(GEN_SCALE) SLIDER Slider Int int $(SLIDER_M) >$@
515
539
 
516
540
include/uslider.h :     $(SLIDER_H)
518
542
uslider.c :             $(SLIDER_C) $(AUTO_HDR)
519
543
        $(GEN_SCALE) USLIDER USlider Unsigned unsigned $(SLIDER_C) >$@
520
544
man/cdk_uslider.3 :     $(SLIDER_M) man
 
545
        -$(MKDIR_MAN)
521
546
        $(GEN_SCALE) USLIDER USlider Unsigned unsigned $(SLIDER_M) >$@