From 1ad5c3e162ad8d0f1162f7bd4b3e1f72c11ea5d6 Mon Sep 17 00:00:00 2001 From: jacomi Date: Tue, 26 Jan 1999 14:37:33 +0000 Subject: redhat directory and makefile updated --- src/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index 10065da..b047ec0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -47,3 +47,23 @@ lex.yy.o: lex.yy.c y.tab.h clean: -/bin/rm -f *.a *.o *.out *.bak *.yy.* *.tab.* *.log irbox + +install: all + test -d $(PREFIX)/usr/bin || mkdirhier $(PREFIX)/usr/bin + test -d $(PREFIX)$(IRBOX_DIR) || mkdirhier $(PREFIX)$(IRBOX_DIR) + test -d $(PREFIX)/etc/rc.d/init.d || mkdirhier $(PREFIX)/etc/rc.d/init.d + test -d $(PREFIX)/etc/rc.d/rc2.d || mkdirhier $(PREFIX)/etc/rc.d/rc2.d + test -d $(PREFIX)/etc/rc.d/rc3.d || mkdirhier $(PREFIX)/etc/rc.d/rc3.d + test -d $(PREFIX)/etc/rc.d/rc4.d || mkdirhier $(PREFIX)/etc/rc.d/rc4.d + test -d $(PREFIX)/etc/rc.d/rc5.d || mkdirhier $(PREFIX)/etc/rc.d/rc5.d + install -m755 irbox.init $(PREFIX)/etc/rc.d/init.d/irbox + ln -s $(PREFIX)/etc/rc.d/init.d/irbox $(PREFIX)/etc/rc.d/rc2.d/S98irbox + ln -s $(PREFIX)/etc/rc.d/init.d/irbox $(PREFIX)/etc/rc.d/rc3.d/S98irbox + ln -s $(PREFIX)/etc/rc.d/init.d/irbox $(PREFIX)/etc/rc.d/rc4.d/S98irbox + ln -s $(PREFIX)/etc/rc.d/init.d/irbox $(PREFIX)/etc/rc.d/rc5.d/S98irbox + install -m755 irbox.conf $(PREFIX)/etc/ + install -m755 irbox $(PREFIX)/usr/bin + for f in `find ../data -type f -maxdepth 1`; do \ + install -m 644 $$f $(PREFIX)$(IRBOX_DIR); \ + done + -- cgit v1.1