edit = sed \ -e 's,@xsbindir\@,$(sbindir),g' \ -e 's,@xbindir\@,$(bindir),g'\ -e 's,@mosrundir\@,$(mosrundir),g' bin_PROGRAMS=mosrun PROG2=joingroup cpujob iojob fastdecay migrategroup nodecay nomig\ resetgroup showgroup slowdecay runhome mosrun_SOURCES=mosrun.c bin_SCRIPTS=$(PROG2) LDADD=../moslib/libmos.la mosrun_LDFLAGS=-static MANS_FROM_MOSRUN=nomig.1 cpujob.1 iojob.1 nodecay.1 slowdecay.1 fastdecay.1\ runhome.1 MANS_FROM_MIGGROUP= showgroup.1 resetgroup.1 mmigrategroup.1\ joingroup.1 CLEANFILES=$(PROG2) man_MANS=mosrun.1 miggroup.1 $(MANS_FROM_MOSRUN) $(MANS_FROM_MIGGROUP) $(MANS_FROM_MOSRUN): mosrun.1 cp mosrun.1 $@ $(MANS_FROM_MIGGROUP): miggroup.1 cp miggroup.1 $@ $(PROG2): $(edit) $@.sh > $@.tmp mv $@.tmp $@ chmod a+x $@ EXTRA_DIST=$(man_MANS) joingroup.sh cpujob.sh iojob.sh fastdecay.sh \ migrategroup.sh nodecay.sh nomig.sh \ resetgroup.sh showgroup.sh slowdecay.sh runhome.sh install-exec-hook: if [ "$(DESTDIR)@mosrundir@x" != "$(DESTDIR)@bindir@x" ]; then \ if [ ! -d "$(DESTDIR)@mosrundir@/" ]; then \ mkdir -p "$(DESTDIR)@mosrundir@/" ; \ fi ; \ mv "$(DESTDIR)@bindir@/mosrun" "$(DESTDIR)@mosrundir@/mosrun" ; \ fi uninstall-hook: if [ "$(DESTDIR)@mosrundir@x" != "$(DESTDIR)@bindir@x" ]; then \ rm -f "$(DESTDIR)@mosrundir@/mosrun" ; \ fi