-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.am
95 lines (78 loc) · 2.53 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
## -*- Makefile -*- mode
## Process this file with automake to create Makefile.in
## Make sure we have a current version of automake
AUTOMAKE_OPTIONS = 1.4
SUBDIRS = \
libs \
fvwm \
modules \
bin \
utils \
$(FVWM_PERLLIB) \
doc \
docs \
rpm \
debian \
sample.fvwmrc \
$(POSUB) \
tests
EXTRA_DIST = \
INSTALL.fvwm \
vms/README \
vms/config.h \
vms/fvwmrc.dat \
vms/make_fvwm.mms \
vms/vms.c \
vms/vms.h \
vms/vms_shareables.opt
## ---------------------------------------------------------------------------
## Manage bzip2 archive together with gzip archive
# Usage:
# make dist2 # instead of make dist
# make distcheck2 # instead of make distcheck
# make distclean2 # instead of make distclean
DISTCHECK_CONFIGURE_FLAGS = --enable-htmldoc
dist2: dist
gzip -dc $(distdir).tar.gz | bzip2 -9 >$(distdir).tar.bz2
distcheck2: distcheck dist2
@banner="$(distdir).tar.bz2 - ready for distribution"; \
dashes=`echo "$$banner" | sed s/./=/g`; \
echo "$$banner"; \
echo "$$dashes"
@if test "x$(ISRELEASED)" != xyes; then \
echo 'Warning: ISRELEASED is not set to "yes".'; \
echo ' So these can not be the official tarballs.'; \
fi
distclean2: distclean
## ---------------------------------------------------------------------------
## Produce an rpm package using dist or from the given tarball
## (requires rpmbuild in your system)
# Usage:
# make rpm-dist
# make release=1 rpm-dist
# make rpm-this
# make version=2.3.22 release=2 rpm-this
# make rpm-dist cparams='--enable-multibyte --quiet' mparams='CFLAGS="-O2 -g"'
# automatical regeneration is missing for other dirs, so do it explicitly
rpm-regenerate:
(cd rpm && $(MAKE) $(AM_MAKEFLAGS) Makefile *.spec) || exit 1
rpm-dist: dist rpm-this
rpm-this: rpm-regenerate
(cd rpm && $(MAKE) $(AM_MAKEFLAGS) this) || exit 1
## -----------------------------------------------------------------
## Produce a deb package using dist or from the given tarball
## (requires fakeroot, dpkg and debhelper in your system)
# Usage:
# make deb-dist
# make release=1 deb-dist
# make deb-this
# make version=2.3.22 release=2 deb-this
# make deb-dist cparams='--enable-gnome --quiet' mparams='CFLAGS="-O2 -g"'
# make deb-inplace release=1.mg fullname=migo # works on sources directly
deb-regenerate:
(cd debian && $(MAKE) $(AM_MAKEFLAGS) Makefile control) || exit 1
deb-dist: dist deb-this
deb-this: deb-regenerate
$(MAKE) -f debian/Makefile $(AM_MAKEFLAGS) this || exit 1
deb-inplace: deb-regenerate
$(MAKE) -f debian/Makefile $(AM_MAKEFLAGS) inplace || exit 1