Here are a few modifications you need to make to your main, top-level `Makefile.in' file.
PACKAGE = @PACKAGE@ VERSION = @VERSION@
DISTFILES
definition, so the file gets
distributed.
@INTLSUB@
and @POSUB@
, which
are replaced respectively by `intl' and `po', or empty
when the configuration processes decides these directories should
not be processed.
Here is an example of a canonical order of processing. In this
example, we also define SUBDIRS
in Makefile.in
for it
to be further used in the `dist:' goal.
SUBDIRS = doc lib @INTLSUB@ src @POSUB@that you will have to adapt to your own package.
distdir = $(PACKAGE)-$(VERSION) dist: Makefile rm -fr $(distdir) mkdir $(distdir) chmod 777 $(distdir) for file in $(DISTFILES); do \ ln $$file $(distdir) 2>/dev/null || cp -p $$file $(distdir); \ done for subdir in $(SUBDIRS); do \ mkdir $(distdir)/$$subdir || exit 1; \ chmod 777 $(distdir)/$$subdir; \ (cd $$subdir && $(MAKE) $@) || exit 1; \ done tar chozf $(distdir).tar.gz $(distdir) rm -fr $(distdir)
Go to the first, previous, next, last section, table of contents.