-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.in
93 lines (68 loc) · 2.37 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
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
VERSION = @VERSION@
DATE = @DATE@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
datadir = @datadir@
fd2sfddir = ${datadir}/fd2sfd
CC = @CC@
CPPFLAGS = @CPPFLAGS@ -DVERSION=\"$(VERSION)\" -DDATE=\"$(DATE)\" \
-W -Wall
LDFLAGS = @LDFLAGS@ -s
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DATA = @INSTALL_DATA@
VPATH = $(srcdir)
EXECUTABLE = fd2sfd
all: $(EXECUTABLE)
clean:
$(RM) $(EXECUTABLE) $(EXECUTABLE)-$(VERSION).tar.gz $(EXECUTABLE).lha \
$(EXECUTABLE).readme gg-fd2sfd.spec *~ core config.log
distclean: clean
$(RM) Makefile cross/bin/gg-fix-includes config.status
maintainter-clean: distclean
$(RM) $(srcdir)/configure gg-fd2sfd.spec
install: all
$(INSTALL) -d $(bindir) $(fd2sfddir)
# Install tools
$(INSTALL_PROGRAM) -s $(EXECUTABLE) $(bindir)
$(INSTALL_SCRIPT) cross/bin/gg-fix-includes $(bindir)
for f in `cd $(srcdir)/cross/share/ && find * -type f`; do \
mkdir -p `dirname $(fd2sfddir)/$${f}`; \
$(INSTALL_DATA) $(srcdir)/cross/share/$${f} `dirname $(fd2sfddir)/$${f}`; \
done
tgz: all gg-fd2sfd.spec
cd $(srcdir) && cvs diff >/dev/null || (echo "Not checked in!"; exit 10)
mkdir $(EXECUTABLE)-$(VERSION)
cd $(EXECUTABLE)-$(VERSION) && cvs export -Dtoday -r FD2SFD fd2inline
mv $(EXECUTABLE)-$(VERSION)/fd2inline $(EXECUTABLE)-$(VERSION)/fd2sfd
mv $(EXECUTABLE)-$(VERSION)/fd2sfd/* $(EXECUTABLE)-$(VERSION)
cp gg-fd2sfd.spec $(EXECUTABLE)-$(VERSION)
rmdir $(EXECUTABLE)-$(VERSION)/fd2sfd
tar cfvz $(EXECUTABLE)-$(VERSION).tar.gz $(EXECUTABLE)-$(VERSION)
$(RM) -r $(EXECUTABLE)-$(VERSION)
lha: all tgz
$(RM) $(EXECUTABLE).lha
lha -ao5 $(EXECUTABLE).lha $(EXECUTABLE) $(EXECUTABLE).readme \
$(EXECUTABLE)-$(VERSION).tar.gz
$(EXECUTABLE): fd2inline.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ $(OUTPUT_OPTION)
#
# Auto-remake autoconf stuff
########################################
${srcdir}/configure: configure.in
cd ${srcdir} && autoconf
# autoheader might not change config.h.in, so touch a stamp file.
${srcdir}/config.h.in: stamp-h.in
${srcdir}/stamp-h.in: configure.in
cd ${srcdir} && autoheader
echo timestamp > ${srcdir}/stamp-h.in
config.h: stamp-h
stamp-h: config.h.in config.status
./config.status
Makefile fd2sfd.readme gg-fd2sfd.spec: Makefile.in config.status
./config.status
config.status: configure
./config.status --recheck