-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
84 lines (70 loc) · 2.35 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
# @configure_input@
# Package-related substitution variables
package = @PACKAGE_NAME@
version = @PACKAGE_VERSION@
tarname = @PACKAGE_TARNAME@
distdir = $(tarname)-$(version)
# automake initialisation (mandatory) and check for minimal automake API version 1.9
# Prefix-related substitution variables
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
#####################################################################
# Tool-related substitution variables
export CC ?= gcc
export AC_CXX ?= g++
export AC_CFLAGS ?= -g -c -Wall -O3 -I. -DUNIX
export AC_CFLAGS1 ?= -Wall -O3 -I. -DUNIX
#####################################################################
all clean check install uninstall fcgene:
$(MAKE) -C src $@
dist: $(distdir).tar.gz
$(distdir).tar.gz: FORCE $(distdir)
tar chof - $(distdir) | gzip -9 -c >$(distdir).tar.gz
rm -rf $(distdir)
$(distdir):
mkdir -p $(distdir)/src
cp configure $(distdir)
cp configure.ac $(distdir)
#cp Makefile $(distdir)
cp Makefile.in $(distdir)
cp config.h.in $(distdir)
cp install-sh $(distdir)
cp missing $(distdir)
#create these programs before copying
################################
cp fcgene_static $(distdir)
cp fcgene.exe $(distdir)
cp src/fcgene $(distdir)
################################
chmod 755 $(distdir)/*.*
cp fcgene.pdf $(distdir)/$(distdir).pdf
cp README $(distdir)
cp updates_in_new_versions.docx $(distdir)
#copy from src
cp src/Makefile.in $(distdir)/src
cp src/*.cpp $(distdir)/src
cp src/*.h $(distdir)/src
cp src/*.h.in $(distdir)/src
#unnecessary
#cp config.h.in $(distdir)
#cp $(srcdir)/config.h.in
#cp $(srcdir)/config.h.in $(distdir)
#cp $(srcdir)/install-sh $(distdir)
#cp src/Makefile $(distdir)/src
distcheck: $(distdir).tar.gz
gzip -cd $+ | tar xvf -
cd $(distdir); ./configure
$(MAKE) -C $(distdir) all check
$(MAKE) -C $(distdir) DESTDIR=$${PWD}/$(distdir)/_inst install uninstall
$(MAKE) -C $(distdir) 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) &>/dev/null
-rm $(distdir).tar.gz &>/dev/null
.PHONY: FORCE all clean check dist distcheck install uninstall