kopia lustrzana https://gitlab.com/sane-project/backends
Added targets "dist" and "sane-backends". make dist creates
sane-backends-x.y.z.tar.gz and make sane-backends also creates the appropriate sane-x-y-z.lsm. Moved distclean to include/. Fixed .PHONY. Made sane-backands-*.lsm look nicer. Henning Meier-Geinitz <henning@meier-geinitz.de>DEVEL_2_0_BRANCH-1
rodzic
c1b967a5d6
commit
f27a9e6dfe
51
Makefile.in
51
Makefile.in
|
@ -7,6 +7,7 @@ top_builddir = .
|
||||||
|
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
VERSION = @VERSION@
|
VERSION = @VERSION@
|
||||||
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
|
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
|
@ -30,10 +31,18 @@ INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
|
||||||
@SET_MAKE@
|
@SET_MAKE@
|
||||||
|
|
||||||
INSTALLED_INCLUDES = $(addprefix $(top_srcdir)/include/sane/,sane.h \
|
SUBDIRS = include lib sanei backend frontend doc tools po
|
||||||
saneopts.h)
|
|
||||||
|
|
||||||
SUBDIRS = lib sanei backend frontend doc tools po
|
DISTFILES = AUTHORS COPYING ChangeLog LEVEL2 LICENSE Makefile.in NEWS \
|
||||||
|
PROBLEMS PROJECTS README README.aix README.hp-ux README.linux \
|
||||||
|
README.openbsd README.os2 README.solaris README.unixware2 README.unixware7 \
|
||||||
|
TODO acinclude.m4 aclocal.m4 config.guess config.sub configure \
|
||||||
|
configure.in configure.os2 install-sh ltconfig ltmain.sh mkinstalldirs \
|
||||||
|
sane-backends.lsm
|
||||||
|
|
||||||
|
.PHONY: all all-recursive clean clean-recursive depend \
|
||||||
|
depend-recursive dist install install-recursive libcheck lsm \
|
||||||
|
sane-backends sort-cvsignore uninstall uninstall-recursive
|
||||||
|
|
||||||
all: all-recursive
|
all: all-recursive
|
||||||
|
|
||||||
|
@ -41,21 +50,16 @@ $(PACKAGE)-$(VERSION).lsm: $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE).lsm
|
||||||
( cat $(PACKAGE).lsm | \
|
( cat $(PACKAGE).lsm | \
|
||||||
sed -e "s|_DATE_|`date +%d%b%y`|g" \
|
sed -e "s|_DATE_|`date +%d%b%y`|g" \
|
||||||
-e "s|_VERSION_|$(VERSION)|g" \
|
-e "s|_VERSION_|$(VERSION)|g" \
|
||||||
-e "s|_T_S_|`find $(PACKAGE)-$(VERSION).tar.gz -printf \"%3k\"`|g"\
|
-e "s|_T_S_|`find $(PACKAGE)-$(VERSION).tar.gz -printf \"%4k\"`|g"\
|
||||||
-e "s|_L_S_|`find $(PACKAGE).lsm -printf "%3k"`|g" > \
|
-e "s|_L_S_|`find $(PACKAGE).lsm -printf "%4k"`|g" > \
|
||||||
$(PACKAGE)-$(VERSION).lsm \
|
$(PACKAGE)-$(VERSION).lsm \
|
||||||
)
|
)
|
||||||
|
|
||||||
lsm: $(PACKAGE)-$(VERSION).lsm
|
lsm: $(PACKAGE)-$(VERSION).lsm
|
||||||
|
|
||||||
install: install-recursive
|
install: install-recursive
|
||||||
$(MKDIR) $(includedir)/sane
|
|
||||||
@list="$(INSTALLED_INCLUDES)"; for file in $$list; do \
|
|
||||||
echo installing $${file} in $(includedir)/sane...; \
|
|
||||||
$(INSTALL_DATA) $${file} $(includedir)/sane || exit 1; \
|
|
||||||
done
|
|
||||||
|
|
||||||
uninstall: uninstall-recursive
|
uninstall: uninstall-recursive
|
||||||
rm -rf $(includedir)/sane
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Keep the .cvsignore files sorted, and use this target to do it.
|
# Keep the .cvsignore files sorted, and use this target to do it.
|
||||||
|
@ -83,9 +87,10 @@ libcheck:
|
||||||
clean: clean-recursive
|
clean: clean-recursive
|
||||||
|
|
||||||
distclean: clean distclean-recursive
|
distclean: clean distclean-recursive
|
||||||
rm -f *~ include/*~ include/sane/*~ *.log *.bak libtool
|
rm -f *~ *.log *.bak libtool
|
||||||
rm -f include/sane/config.h Makefile config.cache config.status
|
rm -f Makefile config.cache config.status
|
||||||
rm -f japi/Makefile
|
rm -f japi/Makefile
|
||||||
|
rm -rf $(distdir)
|
||||||
|
|
||||||
depend: depend-recursive
|
depend: depend-recursive
|
||||||
|
|
||||||
|
@ -98,6 +103,20 @@ depend-recursive uninstall-recursive:
|
||||||
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
|
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
|
||||||
done && test -z "$$fail"
|
done && test -z "$$fail"
|
||||||
|
|
||||||
.PHONY: all clean depend \
|
dist: $(DISTFILES)
|
||||||
all-recursive install-recursive clean-recursive depend-recursive \
|
rm -fr $(distdir)
|
||||||
uninstall-recursive
|
$(MKDIR) $(distdir)
|
||||||
|
for file in $(DISTFILES); do \
|
||||||
|
ln $$file $(distdir) 2>/dev/null || cp -p $$file $(distdir); \
|
||||||
|
done
|
||||||
|
for subdir in $(SUBDIRS) japi testsuite ; do \
|
||||||
|
mkdir $(distdir)/$$subdir || exit 1; \
|
||||||
|
chmod 777 $(distdir)/$$subdir; \
|
||||||
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
||||||
|
done
|
||||||
|
tar chzf $(distdir).tar.gz $(distdir)
|
||||||
|
rm -fr $(distdir)
|
||||||
|
|
||||||
|
$(PACKAGE)-$(VERSION).tar.gz: dist
|
||||||
|
|
||||||
|
sane-backends: dist lsm
|
||||||
|
|
Ładowanie…
Reference in New Issue