-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
129 lines (110 loc) · 2.91 KB
/
Makefile.am
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
121
122
123
124
125
126
127
128
ACLOCAL_AMFLAGS = -I m4
DISTCHECK_CONFIGURE_FLAGS =--enable-maintainer-mode=no
APL_DIRS = workspaces wslib3 wslib4 wslib5
SUBDIRS = doc gnu-apl.d src support-files tools $(APL_DIRS)
DIST_SUBDIRS = $(SUBDIRS) rpm debian
dist_doc_DATA = README \
README-1-prerequisites \
README-2-configure \
README-3-keyboard \
README-4-compliance \
README-5-WINDOWS \
README-6-porting \
README-7-more-info \
README-8-parallel
nobase_dist_sysconf_DATA = gnu-apl.d/preferences
dist_noinst_DATA = Doxyfile Makefile.incl
include Makefile.incl
# doxygen documentation
#
.PHONY: DOXY
DOXY:
doxygen
# source and binary RPMs
#
.PHONY: RPM
RPM: DIST all
rm -f rpm/rpm-tmp.*
make -C rpm $@
mkdir -p ftp-upload
cp rpm/SRPMS/$(PACKAGE)-$(PACKAGE_VERSION)-0.src.rpm ftp-upload/
cp rpm/RPMS/*/$(PACKAGE)-$(PACKAGE_VERSION)-0.*.rpm ftp-upload/
# source and binary Debian packages
#
.PHONY: DEB
DEB: DIST
rm -Rf debian_tmp
mkdir debian_tmp
cp $(distdir).tar.gz \
debian_tmp/$(PACKAGE)_$(PACKAGE_VERSION).orig.tar.gz
cd debian_tmp ; tar xf $(PACKAGE)_$(PACKAGE_VERSION).orig.tar.gz
cp doc/apl.1 debian_tmp/$(distdir)/debian/manpage.1
cd debian_tmp/$(distdir) ; dpkg-buildpackage
mkdir -p ftp-upload
cp debian_tmp/$(PACKAGE)_$(PACKAGE_VERSION)-1_*.deb ftp-upload/
cp debian_tmp/$(PACKAGE)_$(PACKAGE_VERSION)-1.debian.tar.gz ftp-upload/
# update from SVN repository and ./configure
#
.PHONY: SVNUP
SVNUP:
svn update
./configure --disable-maintainer-mode
# a shortcut to export changes to ../savannah-repo-apl (which is supposed to be
# a checkout of the GNU APL repository at Savannah
#
.PHONY: SYNC
SYNC: DIST
rm -Rf apl-$(VERSION)
tar xvzf apl-$(VERSION).tar.gz
rm -f apl-$(VERSION)/src/makefile.h
rm -f apl-$(VERSION)/src/buildtag.hh
rm -f apl-$(VERSION)/src/configure_args.cc
cp -a apl-$(VERSION)/* ../savannah-repo-apl/trunk/
rm -Rf apl-$(VERSION)
cd ../savannah-repo-apl ; svn add . --force -q
# build all packages and SYNC
#
.PHONY: EXPO
EXPO:
tools/check_src
svn -m "auto-commit by make EXPO" commit
svn update
cd src; source buildtag
svn -m "auto-commit by make EXPO" commit
./configure --disable-maintainer-mode
make
make dist
make DEB
make RPM
make SYNC
# EXPO1 is EXPO without updating/committing from/to SVN
.PHONY: EXPO1
EXPO1:
tools/check_src
cd src; source buildtag
./configure --disable-maintainer-mode
make
make dist
make DEB
make RPM
Makefile.dist:
echo "%:" > $@
echo "rm -f Makefile" >> $@
echo "./configure" >> $@
echo "make $@" >> $@
echo >> $@
# make dist and then add Makefile,dist as Makefile to the tar file directory
DIST: dist Makefile.dist
pwd
mkdir -p tmp
cd tmp; tar xzf ../apl-$(VERSION).tar.gz; \
cp -f ../Makefile.dist apl-$(VERSION)/Makefile; \
tar czf ../apl-$(VERSION).tar.gz apl-$(VERSION)
rm -Rf tmp
am--refresh:
echo "making am--refresh"
EXTRA_DIST = config.rpath m4/ChangeLog
.PHONY: git-pull
git-pull:
make -C src $@
make -C wslib5 $@