Added target "dist" and "sane-frontends". make dist creates

sane-frontends-x.y.z.tar.gz and make sane-frontends also
creates the appropriate sane-x-y-z.lsm. Moved distclean to include/.
Fixed .PHONY.
DEVEL_2_0_BRANCH-1
Henning Geinitz 2002-01-08 18:24:41 +00:00
rodzic 8c52b3ae5b
commit 002e08b17c
2 zmienionych plików z 35 dodań i 7 usunięć

Wyświetl plik

@ -4,6 +4,10 @@
from root dir.
* doc/Makefile.in lib/Makefile.in sanei/Makefile.in src/Makefile.in:
Fixed .PHONY. Added target "dist".
* Makefile.in: Added target "dist" and "sane-frontends". make dist
creates sane-frontends-x.y.z.tar.gz and make sane-frontends also
creates the appropriate sane-x-y-z.lsm. Moved distclean to include/.
Fixed .PHONY.
2002-01-08 Oliver Rauch <Oliver.Rauch@Rauch-Domain.DE>

Wyświetl plik

@ -7,6 +7,7 @@ top_builddir = .
PACKAGE = @PACKAGE@
VERSION = @VERSION@
distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)
prefix = @prefix@
exec_prefix = @exec_prefix@
@ -32,7 +33,15 @@ INSTALL_DATA = @INSTALL_DATA@
@SET_MAKE@
SUBDIRS = lib sanei src doc
SUBDIRS = include lib sanei src doc
DISTFILES = AUTHORS COPYING Changelog INSTALL Makefile.in NEWS PROBLEMS \
README TODO aclocal.m4 config.guess config.sub configure configure.in \
install-sh mkinstalldirs sane-frontends.lsm
.PHONY: all all-recursive clean clean-recursive depend \
depend-recursive dist install install-recursive lsm sane-frontends \
uninstall uninstall-recursive
all: all-recursive
@ -44,7 +53,8 @@ $(PACKAGE)-$(VERSION).lsm: $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE).lsm
-e "s|_L_S_|`find $(PACKAGE).lsm -printf "%3k"`|g" > \
$(PACKAGE)-$(VERSION).lsm \
)
lsm: $(PACKAGE)-$(VERSION).lsm
lsm: $(PACKAGE)-$(VERSION).lsm dist
install: install-recursive
@ -53,8 +63,8 @@ uninstall: uninstall-recursive
clean: clean-recursive
distclean: clean distclean-recursive
rm -f *~ include/*~ include/sane/*~ *.log *.bak libtool
rm -f include/sane/config.h Makefile config.cache config.status
rm -f *~ *.log *.bak libtool
rm -f Makefile config.cache config.status
rm -f intl/Makefile
depend: depend-recursive
@ -68,6 +78,20 @@ distclean-recursive depend-recursive:
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
.PHONY: all clean depend \
all-recursive install-recursive clean-recursive depend-recursive \
uninstall-recursive
dist: $(DISTFILES)
rm -fr $(distdir)
$(MKDIR) $(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; \
(cd $$subdir && $(MAKE) $@) || exit 1; \
done
tar chzf $(distdir).tar.gz $(distdir)
rm -fr $(distdir)
$(PACKAGE)-$(VERSION).tar.gz: dist
sane-frontends: dist lsm