-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.in
61 lines (48 loc) · 1.51 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
# @configure_input@
# Package-specific substitution variables
package = @PACKAGE_NAME@
version = @PACKAGE_VERSION@
tarname = @PACKAGE_TARNAME@
distdir = $(tarname)_$(version)
# Prefix-specific substitution variables
prefix = @prefix@
# Mixed package and prefix substitution variables
installdir = $(prefix)/$(distdir)
# Target specification
all clean check install uninstall nco_install:
cd libsrc && $(MAKE) $@
distclean: clean
cd libsrc && $(MAKE) $@
-rm Makefile config.log* config.status >/dev/null 2>&1
dist: $(distdir).tar.gz
distcheck: $(distdir).tar.gz
gzip -cd $(distdir).tar.gz | tar xvf -
cd $(distdir) && ./configure
cd $(distdir) && $(MAKE) all
cd $(distdir) && $(MAKE) check
cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst install
cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst uninstall
cd $(distdir) && $(MAKE) clean
rm -fr $(distdir)
@echo; \
echo "*** Package $(distdir).tar.gz is ready for distribution ***"; \
echo
$(distdir).tar.gz: $(distdir)
tar -chof - $(distdir) --exclude .svn | gzip -9 -c > $@
rm -rf $(distdir)
$(distdir): FORCE
mkdir -p $(distdir)
cp configure.ac $(distdir)
cp configure $(distdir)
cp Makefile.in $(distdir)
cp install-sh $(distdir)
cp -rL libsrc $(distdir)/libsrc
cp -rL config-setup $(distdir)/config-setup
Makefile: Makefile.in config.status
./config.status $@
config.status: configure
./config.status --recheck
FORCE:
-rm $(distdir).tar.gz >/dev/null 2>&1
-rm -fr $(distdir) >/dev/null 2>&1
.PHONY: FORCE all clean check dist distcheck install uninstall