1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
#Makefile.am part of GNU Queue. Copyright 1998-2000 W. G. Krebs
#Distributed under GPL. Absolutely no warranty. See file COPYING for
#details and terms of license.
sbin_PROGRAMS = queued queue_manager task_manager
bin_PROGRAMS = queue task_control
#WGK 2000/08/11 Don't install random anywhere
#"rdiego@iol.it"<rdiego@iol.it> pointed out that random must be
#installed by Makefile.am (rather than in install-local-stuff)
#because it needs to link gethostbyname under Solaris.
noinst_PROGRAMS = random
random_SOURCES = random.c qlib.c
queued_SOURCES = queued.c lex.l handle.c ident.c pty.c qlib.c mrestart.c wakeup.c sha1.c
queued_LDADD = @LEXLIB@ @LIBOBJS@
queue_SOURCES = queue.c wakeup.c ident.c qlib.c sha1.c
queue_LDADD = @LIBOBJS@
queue_manager_SOURCES = queue_manager.cc queue_define.h
queue_manager_LDADD = @LIBOBJS@
task_manager_SOURCES = task_manager.cc queue_define.h
task_manager_LDADD = @LIBOBJS@
task_control_SOURCES = task_control.cc queue_define.h
task_control_LDADD = @LIBOBJS@
install-exec-local: install-local-stuff
$(INSTALL) -d $(DESTDIR)/@bindir@ >/dev/null 2>&1 || (mkdir $(DESTDIR)/@bindir@; exit 0)
$(INSTALL) -d $(DESTDIR)/@sbindir@ > /dev/null 2>&1 || (mkdir $(DESTDIR)/@sbindir@ ; exit 0)
$(INSTALL) -m @MODE@ -o @OWNER@ queue $(DESTDIR)/${bindir}/queue
$(INSTALL) -m 700 -o @OWNER@ queued $(DESTDIR)/${sbindir}/queued
# (ln -s ${bindir}/queue ${bindir}/qsh; exit 0)
# (ln -s queue qsh; exit 0)
install-local-stuff:
$(INSTALL) -o @OWNER@ -m 700 -d @localstatedir@/ || (mkdir @datadir@; chmod 700 @datadir@; exit 0)
$(INSTALL) -d @datadir@ > /dev/null 2>&1 || (mkdir @datadir@; exit 0)
# if test ! -s @datadir@/queuecookiefile ; then ./random > @datadir@/queuecookiefile; chmod 400 @datadir@/queuecookiefile; fi
# echo Adding this host to Queue host access control list file...
# HOSTNAME=`hostname`; grep $$HOSTNAME @datadir@/qhostsfile; if test $$? -ne 0 ; then echo $$HOSTNAME >> @datadir@/qhostsfile; fi; exit 0
(chmod 644 @datadir@/qhostsfile >/dev/null 2>&1; exit 0)
$(INSTALL) -d @localstatedir@ || (mkdir @localstatedir@; exit 0)
install-data-local:
$(INSTALL) -d $(DESTDIR)/@localstatedir@ || (mkdir $(DESTDIR)/@localstatedir@; exit 0)
$(INSTALL) -o @OWNER@ -m 700 -d $(DESTDIR)/@localstatedir@/queue/ || (mkdir $(DESTDIR)/@localstatedir@/queue; chmod 700 $(DESTDIR)/@localstatedir@/queue; exit 0)
$(INSTALL) -o @OWNER@ -m 700 -d $(DESTDIR)/@localstatedir@/queue/now || (mkdir $(DESTDIR)/@localstatedir@/queue/now; chmod 700 $(DESTDIR)/@localstatedir@/queue/now; exit 0)
$(INSTALL) -o @OWNER@ -m 700 -d $(DESTDIR)/@localstatedir@/queue/wait || (mkdir $(DESTDIR)/@localstatedir@/queue/wait; chmod 700 $(DESTDIR)/@localstatedir@/queue/wait; exit 0)
$(INSTALL) -o @OWNER@ -m 600 profile $(DESTDIR)/@localstatedir@/queue/now
$(INSTALL) -o @OWNER@ -m 600 profile $(DESTDIR)/@localstatedir@/queue/wait
# $(INSTALL) -m 755 -d $(DESTDIR)/@infodir@ || ( mkdir $(DESTDIR)/@infodir@; chmod 755 $(DESTDIR)/@infodir )
# $(INSTALL) -m 644 doc/queue.info $(DESTDIR)/@infodir@
# (install-info --infodir=$(DESTDIR)/@infodir@ @infodir@/queue.info; exit 0)
# $(INSTALL) -m 755 -d $(DESTDIR)/@mandir@/man1 || ( mkdir @mandir@; mkdir $(DESTDIR)/@mandir@/man; chmod 755 $(DESTDIR)/@mandir@ $(DESTDIR)/@mandir@/man1 )
# cp doc/queue.man doc/queue.1
# $(INSTALL) -m 644 doc/queue.1 @mandir@/man1/
# (ln @mandir@/man1/queue.1 @mandir@/man1/qsh.1; exit 0)
uninstall-local: uninstall-local-exec uninstall-local-data
uninstall-local-data:
(rm -rf @localstatedir@/queue; exit 0)
(rm -rf @localstatedir@/queued.pid*; exit 0)
echo You may wish to delete @datadir@/qhostsfile as well.
uninstall-local-exec:
(rm ${bindir}/queue; exit 0)
(rm ${sbindir}/queued; exit 0)
|