File tree 2 files changed +31
-22
lines changed
2 files changed +31
-22
lines changed Original file line number Diff line number Diff line change 1
- bashcompdir = $(datadir ) /$(PACKAGE ) /completions
2
- bashcomp_DATA = 2to3 \
1
+ cross_platform = 2to3 \
3
2
7z \
4
3
a2x \
5
4
abook \
@@ -501,27 +500,37 @@ bashcomp_DATA = 2to3 \
501
500
zopfli \
502
501
zopflipng
503
502
503
+ solaris_extra = pkgutil
504
504
505
- if SOLARIS
506
- bashcomp_DATA += pkgutil
507
- endif
508
-
509
- if BSD
510
- bashcomp_DATA += pkg_delete
511
- endif
505
+ bsd_extra = pkg_delete
512
506
513
- if FREEBSD
514
- bashcomp_DATA += \
507
+ freebsd_extra = \
515
508
freebsd-update \
516
509
kldload \
517
510
kldunload \
518
511
portinstall \
519
512
portsnap \
520
513
portupgrade
521
- endif
522
514
515
+ # We include all the files in the tarball
516
+ EXTRA_DIST = $(bashcomp_DATA ) \
517
+ $(solaris_extra ) \
518
+ $(bsd_extra ) \
519
+ $(freebsd_extra )
523
520
524
- EXTRA_DIST = $(bashcomp_DATA )
521
+ bashcompdir = $(datadir ) /$(PACKAGE ) /completions
522
+ bashcomp_DATA = $(cross_platform )
523
+ # We add only the completions that are relevant for the current platform we're
524
+ # installing on.
525
+ if SOLARIS
526
+ bashcomp_DATA += $(solaris_extra )
527
+ endif
528
+ if BSD
529
+ bashcomp_DATA += $(bsd_extra )
530
+ endif
531
+ if FREEBSD
532
+ bashcomp_DATA += $(freebsd_extra )
533
+ endif
525
534
526
535
CLEANFILES = \
527
536
7za \
Original file line number Diff line number Diff line change 14
14
15
15
AC_CANONICAL_HOST
16
16
17
- build_bsd =
18
- build_freebsd =
19
- build_solaris =
17
+ install_bsd =
18
+ install_freebsd =
19
+ install_solaris =
20
20
case ${host_os} in
21
21
*bsd*)
22
- build_bsd =yes
22
+ install_bsd =yes
23
23
case ${host_os} in
24
24
*freebsd*)
25
- build_freebsd =yes ;;
25
+ install_freebsd =yes ;;
26
26
esac ;;
27
27
*solaris*)
28
- build_solaris =yes ;;
28
+ install_solaris =yes ;;
29
29
esac
30
30
31
- AM_CONDITIONAL([ BSD] , [ test "${build_bsd }" = yes] )
32
- AM_CONDITIONAL([ FREEBSD] , [ test "${build_freebsd }" = yes] )
33
- AM_CONDITIONAL([ SOLARIS] , [ test "${build_solaris }" = yes] )
31
+ AM_CONDITIONAL([ BSD] , [ test "${install_bsd }" = yes] )
32
+ AM_CONDITIONAL([ FREEBSD] , [ test "${install_freebsd }" = yes] )
33
+ AM_CONDITIONAL([ SOLARIS] , [ test "${install_solaris }" = yes] )
34
34
35
35
AC_CONFIG_FILES ( [
36
36
Makefile
You can’t perform that action at this time.
0 commit comments