summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-15 01:43:21 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-15 01:43:21 +0800
commita017c021070490bcc128acbcb8c5732d9183eaa4 (patch)
treef75cdb2d0770979a4aa7406fb0c2805cab68fdb8
parent5cb2ead8cae53b3e00b689933ae07ed88656026e (diff)
downloadpttbbs-a017c021070490bcc128acbcb8c5732d9183eaa4.tar
pttbbs-a017c021070490bcc128acbcb8c5732d9183eaa4.tar.gz
pttbbs-a017c021070490bcc128acbcb8c5732d9183eaa4.tar.bz2
pttbbs-a017c021070490bcc128acbcb8c5732d9183eaa4.tar.lz
pttbbs-a017c021070490bcc128acbcb8c5732d9183eaa4.tar.xz
pttbbs-a017c021070490bcc128acbcb8c5732d9183eaa4.tar.zst
pttbbs-a017c021070490bcc128acbcb8c5732d9183eaa4.zip
* update Makefile: support install
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4618 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--daemon/logind/Makefile7
-rw-r--r--daemon/logind/logind.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/daemon/logind/Makefile b/daemon/logind/Makefile
index 7666cf95..9e7fa093 100644
--- a/daemon/logind/Makefile
+++ b/daemon/logind/Makefile
@@ -2,6 +2,7 @@
SRCROOT= ../..
.include "$(SRCROOT)/pttbbs.mk"
+PROGS= logind
PROGRAMS= logind loginc
UTILDIR= $(SRCROOT)/util
UTILOBJ= $(UTILDIR)/util_var.o
@@ -24,5 +25,11 @@ logind: logind.o
loginc: loginc.o
${CC} ${CFLAGS} ${LDFLAGS} -levent -o $@ $> $(LDLIBS)
+install: $(PROGS)
+ install -d $(BBSHOME)/bin/
+ install -c -m 755 $(PROGS) $(BBSHOME)/bin/
+ mv -f $(BBSHOME)/bin/logind $(BBSHOME)/bin/logind.`date '+%m%d%H%M'`
+ ln -sv $(BBSHOME)/bin/logind.`date '+%m%d%H%M'` $(BBSHOME)/bin/logind
+
clean:
rm -f *~ ${PROGRAMS} logind.o loginc.o
diff --git a/daemon/logind/logind.c b/daemon/logind/logind.c
index 3e411e02..6cc8b79b 100644
--- a/daemon/logind/logind.c
+++ b/daemon/logind/logind.c
@@ -13,7 +13,7 @@
// 2. [drop] change close connection to 'wait until user hit then close'
// 3. [done] regular check text screen files instead of HUP?
// 4. [done] re-start mbbsd if pipe broken?
-// 5. clean mbbsd pid log files?
+// 5. [drop] clean mbbsd pid log files?
#include <stdio.h>
#include <ctype.h>