-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile.in
64 lines (50 loc) · 1.45 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Formosa BBS Makefile
SHELL= /bin/sh
SUBDIRS := lib src util bbsweb bbsweb/util docs
CLEANDIRS := $(SUBDIRS) src/util csbbs
PHONY_TARGETS := all debug clean distclean install install_once update kill_process
VERSION := @PACKAGE_VERSION@
HOMEBBS := @HOMEBBS@
MAKE := @MAKE@
BBS_USERNAME := @BBS_USERNAME@
BBS_GROUPNAME := @BBS_GROUPNAME@
BBS_TCP_PORT := @BBS_TCP_PORT@
.PHONY: $(SUBDIRS) $(CLEANDIRS) $(CLEANDIRS_CLEAN) $(PHONY_TARGETS)
all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@ $(target)
debug: target := debug
debug: $(SUBDIRS)
kill_process:
-kill `cat /tmp/formosa.@BBS_TCP_PORT@`
-killall bbsweb
update: kill_process install
$(HOMEBBS)/bin/bbsd @BBS_TCP_PORT@
$(HOMEBBS)/bin/bbsweb
config_bbs3:
./autogen.sh
CFLAGS=-DNSYSUBBS3 ./configure --prefix=/apps/bbs
install_once: target := install_once
install_once: $(SUBDIRS)
CLEANDIRS_CLEAN = $(addsuffix .clean, $(CLEANDIRS))
$(CLEANDIRS_CLEAN):
if [ -f $(basename $@)/Makefile ]; then \
echo "Cleaning $(basename $@) ..."; \
$(MAKE) -C $(basename $@) clean; \
fi;
clean: $(CLEANDIRS_CLEAN)
distclean: clean
@for i in $(CLEANDIRS); do \
echo "Dist Cleaning $$i ...";\
(cd $$i; rm -f *~ DEADJOE core a.out Makefile;) \
done
@-rm -f src/globals.c
@-rm -f *~
@-rm -f configure config.cache config.status config.log \
config.h config.h.in
@-rm -rf autom4te.cache
install: target := install
install: $(HOMEBBS)/bin $(SUBDIRS)
$(HOMEBBS)/bin:
mkdir -p $@
chown -R @BBS_USERNAME@:@BBS_GROUPNAME@ $@