-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
92 lines (75 loc) · 2.08 KB
/
makefile
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#
# shxd-0.2 makefile script
# February 2, 2002
# Devin Teske <[email protected]>
#
srcdir = .
CC = gcc
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
MV = /bin/mv
RM = /bin/rm
SHELL = /bin/sh
# Where to install
prefix = /usr/local/shxd
exec_prefix = ${prefix}
exec_suffix =
SUBDIRS = src
mkfldep = include/config.h.in src/Makefile.in \
include/version.h
noargs: all
all tlist acctedit: makefile
@for dir in $(SUBDIRS); do \
echo "Making $@ in $$dir..."; \
(cd $$dir ; $(MAKE) $(MFLAGS) prefix="$(prefix)" $@) || exit 1; \
done
binaries:
@./utils/mkbin
install: makefile
@for dir in $(SUBDIRS); do \
echo "Making $@ in $$dir..."; \
(cd $$dir ; $(MAKE) $(MFLAGS) prefix="$(prefix)" $@); \
done
@echo "installation: installing into $(prefix)"
@if [ ! -e "$(prefix)" ]; then \
cp -Rf run $(prefix); \
fi
cp -f run/hxd $(prefix)/hxd;
@if [ ! -e "$(prefix)/etc" ]; then \
cp -f run/hxd.conf $(prefix)/hxd.conf; \
fi
@if [ ! -e "$(prefix)/etc" ]; then \
cp -Rf run/etc $(prefix)/etc; \
fi
@echo "complete."
clean:
@for dir in $(SUBDIRS); do \
echo "Making $@ in $$dir..."; \
(cd $$dir ; $(MAKE) $(MFLAGS) prefix="$(prefix)" $@); \
done
almostclean: clean
$(RM) -f config.log makefile include/config.h
@for dir in $(SUBDIRS); do \
echo Making distclean in $$dir; \
(cd $$dir; $(MAKE) $(MFLAGS) prefix="$(prefix)" distclean); \
done
distclean:
$(RM) -f config.log makefile include/config.h config.status \
config.cache run/log bin/hxtrackd$(exec_suffix) \
bin/acctedit bin/tlist run/hxd$(exec_suffix) \
run/etc/.*cache
@for dir in $(SUBDIRS); do \
echo Making distclean in $$dir; \
(cd $$dir; $(MAKE) $(MFLAGS) prefix="$(prefix)" distclean); \
done
targz: distclean
tar cvf current.tar . ; gzip current.tar
tgz: distclean
tar czfv current.tgz .
makefile: $(mkfldep)
@echo "Package configuration updated. Cleaning and reconfiguring" ;\
./config.status --recheck;\
./config.status ;\
$(MAKE) $(MFLAGS) clean
depend: