diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
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 + |