-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.in
120 lines (105 loc) · 4.31 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# @configure_input@
package = @PACKAGE_NAME@
version = @PACKAGE_VERSION@
tarname = @PACKAGE_TARNAME@
distdir = $(tarname)-$(version)
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
mandir = @mandir@
datarootdir = @datarootdir@
all:
cd src && $(MAKE) $@
bzip2 -f -k man/bug-create-project.1
install:
cd src && $(MAKE) $@
mkdir -p $(DESTDIR)$(bindir)
install -m 0755 bug-create-project $(DESTDIR)$(bindir)
install -d $(DESTDIR)$(mandir)/man1
install -m 0744 man/bug-create-project.1.bz2 $(DESTDIR)$(mandir)/man1/
install -d $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo
install -m 0644 demo/AUTHORS $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/
install -m 0644 demo/COPYING $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/
install -m 0644 demo/ChangeLog $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/
install -m 0644 demo/INSTALL $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/
install -m 0644 demo/Makefile.am $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/
install -m 0644 demo/NEWS $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/
install -m 0644 demo/README $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/
install -m 0744 demo/autogen.sh $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/
install -m 0644 demo/configure.ac $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/
install -m 0744 demo/env.sh $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/
install -d $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/src/
install -m 0644 demo/src/Makefile.am $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/src/
install -m 0644 demo/src/bugdemo.scm $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/src/
install -m 0644 demo/src/config.scm.in $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/src/
mkdir -p $(DESTDIR)$(libdir)/pkgconfig/
install -m 0644 pkgconfig/@[email protected] $(DESTDIR)$(libdir)/pkgconfig/
uninstall:
-cd src && $(MAKE) $@
-rm $(DESTDIR)$(bindir)/bug-create-project
-rm $(DESTDIR)$(mandir)/man1/bug-create-project.1.bz2
-rm $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/AUTHORS
-rm $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/COPYING
-rm $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/ChangeLog
-rm $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/INSTALL
-rm $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/Makefile.am
-rm $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/NEWS
-rm $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/README
-rm $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/autogen.sh
-rm $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/configure.ac
-rm $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/env.sh
-rm $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/src/Makefile.am
-rm $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/src/bugdemo.scm
-rm $(DESTDIR)$(datarootdir)/@PACKAGE_NAME@/demo/src/config.scm.in
-rm $(DESTDIR)$(libdir)/pkgconfig/@[email protected]
dist: $(distdir).tar.gz
$(distdir).tar.gz : $(distdir)
tar chof - $(distdir) | gzip -9 -c > $@
rm -rf $(distdir)
$(distdir): FORCE
mkdir $(distdir)
cd $(distdir) ; \
git clone ../ . ; \
rm -rf .git* ; \
cp ../configure.ac . ; \
cp ../configure . ; \
cp ../config.h.in .
distcheck: $(distdir).tar.gz
# without docs
gzip -cd $(distdir).tar.gz | tar xvf -
cd $(distdir) && ./configure
cd $(distdir) && $(MAKE)
cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst install
cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst uninstall
@remaining="`find $${PWD}/$(distdir)/_inst -type f | wc -l`"; \
if test "$${remaining}" -ne 0; then \
echo "*** $${remaining} file(s) remaining in stage directory!"; \
exit 1; \
fi
cd $(distdir) && $(MAKE) clean
rm -rf $(distdir)
# with docs
gzip -cd $(distdir).tar.gz | tar xvf -
cd $(distdir) && ./configure --enable-pdf --enable-html
cd $(distdir) && $(MAKE)
cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst install
cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst uninstall
@remaining="`find $${PWD}/$(distdir)/_inst -type f | wc -l`"; \
if test "$${remaining}" -ne 0; then \
echo "*** $${remaining} file(s) remaining in stage directory!"; \
exit 1; \
fi
cd $(distdir) && $(MAKE) clean
rm -rf $(distdir)
@echo "*** Package $(distdir).tar.gz is ready for distribution"
Makefile: Makefile.in config.status
./config.status $@
config.status: configure
./config.status --recheck
FORCE:
-rm -rf $(distdir).tar.gz >/dev/null 2>&1
-rm -rf $(distdir) >/dev/null 2>&1
clean:
git clean -fdx
.PHONY: FORCE all clean install uninstall