cvsimport
[fvwm.git] / Makefile.am
blobbfade51cff641d2fa64786714a872ad2defa1fee
1 ## -*- Makefile -*- mode
2 ## Process this file with automake to create Makefile.in
4 ## Make sure we have a current version of automake
5 AUTOMAKE_OPTIONS = 1.4
7 SUBDIRS = \
8         libs \
9         fvwm \
10         modules \
11         bin \
12         utils \
13         $(FVWM_PERLLIB) \
14         doc \
15         docs \
16         rpm \
17         debian \
18         sample.fvwmrc \
19         $(POSUB) \
20         tests
22 EXTRA_DIST = \
23         INSTALL.fvwm \
24         vms/README \
25         vms/config.h \
26         vms/fvwmrc.dat \
27         vms/make_fvwm.mms \
28         vms/vms.c \
29         vms/vms.h \
30         vms/vms_shareables.opt
32 ## ---------------------------------------------------------------------------
33 ## Manage bzip2 archive together with gzip archive
34 #  Usage:
35 #    make dist2       # instead of make dist
36 #    make distcheck2  # instead of make distcheck
37 #    make distclean2  # instead of make distclean
39 DISTCHECK_CONFIGURE_FLAGS = --enable-htmldoc
41 dist2: dist
42         gzip -dc $(distdir).tar.gz | bzip2 -9 >$(distdir).tar.bz2
44 distcheck2: distcheck dist2
45         @banner="$(distdir).tar.bz2 - ready for distribution"; \
46         dashes=`echo "$$banner" | sed s/./=/g`; \
47         echo "$$banner"; \
48         echo "$$dashes"
49         @if test "x$(ISRELEASED)" != xyes; then \
50                 echo 'Warning: ISRELEASED is not set to "yes".'; \
51                 echo '  So these can not be the official tarballs.'; \
52         fi
54 distclean2: distclean
56 ## ---------------------------------------------------------------------------
57 ## Produce an rpm package using dist or from the given tarball
58 ## (requires rpmbuild in your system)
59 #  Usage:
60 #    make rpm-dist
61 #    make release=1 rpm-dist
62 #    make rpm-this
63 #    make version=2.3.22 release=2 rpm-this
64 #    make rpm-dist cparams='--enable-multibyte --quiet' mparams='CFLAGS="-O2 -g"'
66 # automatical regeneration is missing for other dirs, so do it explicitly
67 rpm-regenerate:
68         (cd rpm && $(MAKE) $(AM_MAKEFLAGS) Makefile *.spec) || exit 1
70 rpm-dist: dist rpm-this
72 rpm-this: rpm-regenerate
73         (cd rpm && $(MAKE) $(AM_MAKEFLAGS) this) || exit 1
75 ## -----------------------------------------------------------------
76 ## Produce a deb package using dist or from the given tarball
77 ## (requires fakeroot, dpkg and debhelper in your system)
78 #  Usage:
79 #    make deb-dist
80 #    make release=1 deb-dist
81 #    make deb-this
82 #    make version=2.3.22 release=2 deb-this
83 #    make deb-dist cparams='--enable-gnome --quiet' mparams='CFLAGS="-O2 -g"'
84 #    make deb-inplace release=1.mg fullname=migo # works on sources directly
86 deb-regenerate:
87         (cd debian && $(MAKE) $(AM_MAKEFLAGS) Makefile control) || exit 1
89 deb-dist: dist deb-this
91 deb-this: deb-regenerate
92         $(MAKE) -f debian/Makefile $(AM_MAKEFLAGS) this || exit 1
94 deb-inplace: deb-regenerate
95         $(MAKE) -f debian/Makefile $(AM_MAKEFLAGS) inplace || exit 1