-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
76 lines (60 loc) · 1.69 KB
/
makefile
File metadata and controls
76 lines (60 loc) · 1.69 KB
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
#
# shx-0.2 makefile script
# December 17, 2002
# Devin Teske <devinteske@hotmail.com>
#
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/bin
exec_prefix = ${prefix}
exec_suffix =
SUBDIRS = src
mkfldep = configure config.status makefile.in \
include/config.h.in src/Makefile.in
noargs: all
all hx ghx: makefile
@for dir in $(SUBDIRS); do \
echo "Making $@ in $$dir..."; \
(cd $$dir ; $(MAKE) $(MFLAGS) prefix="$(prefix)" $@) || exit 1; \
done
install: makefile
@for dir in $(SUBDIRS); do \
echo "Making $@ in $$dir..."; \
(cd $$dir ; $(MAKE) $(MFLAGS) prefix="$(prefix)" $@); \
done
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/hx$(exec_suffix) run/ghx$(exec_suffix) \
run/core
@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: