summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorjacomi1999-01-26 14:37:33 +0000
committerjacomi1999-01-26 14:37:33 +0000
commit1ad5c3e162ad8d0f1162f7bd4b3e1f72c11ea5d6 (patch)
tree4489e943eed3fd30e85502d75a5241f098ae918b /src/Makefile
parent72b061198f501fd3983585b7c689a0e10ff084f5 (diff)
downloadirbox-1ad5c3e162ad8d0f1162f7bd4b3e1f72c11ea5d6.zip
irbox-1ad5c3e162ad8d0f1162f7bd4b3e1f72c11ea5d6.tar.gz
irbox-1ad5c3e162ad8d0f1162f7bd4b3e1f72c11ea5d6.tar.bz2
irbox-1ad5c3e162ad8d0f1162f7bd4b3e1f72c11ea5d6.tar.xz
redhat directory and makefile updated
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile20
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
+