X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=changer-src%2FMakefile.am;h=e36992d451c115ad28776af6464f1fce757cadf1;hb=011a59f5a54864108a16af570a6b287410597cc2;hp=490e987702b095353e2e68486bcd1fc1f9c01fe1;hpb=1194fb66aa28d9929c3f2bef3cc6c1c3f40a60a4;p=debian%2Famanda diff --git a/changer-src/Makefile.am b/changer-src/Makefile.am index 490e987..e36992d 100644 --- a/changer-src/Makefile.am +++ b/changer-src/Makefile.am @@ -1,76 +1,18 @@ # Makefile for Amanda tape changer programs. -INCLUDES = -I$(top_builddir)/common-src \ - -I$(top_srcdir)/common-src \ - -I$(top_srcdir)/server-src \ - -I$(top_srcdir)/tape-src - -LIB_EXTENSION = la - -if WANT_CHIO_SCSI -CHIO_SCSI = chg-scsi-chio -endif - -if WANT_CHG_SCSI -CHG_SCSI = chg-scsi -endif - -libexec_PROGRAMS = $(CHG_SCSI) -EXTRA_PROGRAMS = $(CHIO_SCSI) - -libexec_SCRIPTS = chg-manual chg-multi chg-mtx \ - chg-rth chg-chs chg-chio \ - chg-zd-mtx chg-juke chg-rait \ - chg-null chg-mcutil chg-disk \ - chg-iomega - -CLEANFILES = $(libexec_SCRIPTS) - -### -# Because libamanda includes routines (e.g. regex) provided by some system -# libraries, and because of the way libtool sets up the command line, we -# need to list libamanda twice here, first to override the system library -# routines, and second to pick up any references in the other libraries. -### - -LDADD = ../common-src/libamanda.$(LIB_EXTENSION) \ - ../server-src/libamserver.$(LIB_EXTENSION) \ - ../tape-src/libamtape.$(LIB_EXTENSION) \ - ../common-src/libamanda.$(LIB_EXTENSION) - -SUFFIXES = .pl .sh - -chg_scsi_SOURCES = chg-scsi.c libscsi.h scsi-defs.h \ - scsi-aix.c scsi-changer-driver.c scsi-hpux_new.c scsi-irix.c \ - scsi-linux.c scsi-solaris.c scsi-bsd.c scsi-cam.c sense.c - -chg_scsi_chio_SOURCES = chg-scsi-chio.c scsi-hpux.c scsi-chio.c libscsi.h - -EXTRA_DIST = scsi-proto.c - -.pl: - cat $< > $@ - chmod a+x $@ - -test -z "$(PERL)" || $(PERL) -c $@ - -.sh: - cat $< > $@ - chmod a+x $@ - -install-exec-hook: - @list="$(sbin_PROGRAMS) $(sbin_SCRIPTS)"; \ - for p in $$list; do \ - pa=$(DESTDIR)$(sbindir)/`echo $$p|sed '$(transform)'`; \ - echo chown $(BINARY_OWNER) $$pa; \ - chown $(BINARY_OWNER) $$pa; \ - echo chgrp $(SETUID_GROUP) $$pa; \ - chgrp $(SETUID_GROUP) $$pa; \ - done - @list="$(libexec_PROGRAMS) $(libexec_SCRIPTS)"; \ - for p in $$list; do \ - pa=$(DESTDIR)$(libexecdir)/`echo $$p|sed '$(transform)'`; \ - echo chown $(BINARY_OWNER) $$pa; \ - chown $(BINARY_OWNER) $$pa; \ - echo chgrp $(SETUID_GROUP) $$pa; \ - chgrp $(SETUID_GROUP) $$pa; \ - done +include $(top_srcdir)/config/automake/vars.am +include $(top_srcdir)/config/automake/scripts.am +include $(top_srcdir)/config/automake/installperms.am + +SCRIPTS_SHELL = \ + chg-manual \ + chg-multi \ + chg-zd-mtx \ + chg-disk + +SCRIPTS_INCLUDE = \ + chg-lib.sh +EXTRA_DIST += chg-lib.sh.in + +amlibexec_SCRIPTS = $(SCRIPTS_SHELL) +amlibexec_DATA = $(SCRIPTS_INCLUDE)