kopia lustrzana https://gitlab.com/sane-project/backends
Regenerate .conf files only if .conf.in were changed.
rodzic
1bce75400e
commit
e7c499798b
|
@ -59,6 +59,7 @@
|
||||||
by the appropriate directories. This is especially useful for
|
by the appropriate directories. This is especially useful for
|
||||||
firmware locations. For the firmware paths for the artec_eplus48u,
|
firmware locations. For the firmware paths for the artec_eplus48u,
|
||||||
gt68xx, and snapscan backends variables were used. Bug #302590.
|
gt68xx, and snapscan backends variables were used. Bug #302590.
|
||||||
|
Regenerate .conf files only if .conf.in were changed.
|
||||||
* backend/.cvsignore: Added *.conf.
|
* backend/.cvsignore: Added *.conf.
|
||||||
* README.linux: Mentioned udev.
|
* README.linux: Mentioned udev.
|
||||||
* doc/backend-writing.txt: New chapters about the build system and
|
* doc/backend-writing.txt: New chapters about the build system and
|
||||||
|
|
|
@ -170,8 +170,6 @@ DISTFILES = abaton.c abaton.conf.in abaton.h agfafocus.c agfafocus.conf.in \
|
||||||
sm3840.conf.in sm3840.c sm3840_lib.c sm3840_params.h sm3840_scan.c sm3840.h \
|
sm3840.conf.in sm3840.c sm3840_lib.c sm3840_params.h sm3840_scan.c sm3840.h \
|
||||||
sm3840_lib.h
|
sm3840_lib.h
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.PHONY: all clean depend dist distclean install uninstall
|
.PHONY: all clean depend dist distclean install uninstall
|
||||||
|
|
||||||
libsane-%.la: %.lo %-s.lo $(EXTRA) $(LIBOBJS)
|
libsane-%.la: %.lo %-s.lo $(EXTRA) $(LIBOBJS)
|
||||||
|
@ -286,21 +284,19 @@ libsane.la: dll.lo dll-s.lo $(EXTRA) $(addsuffix .lo,$(DLL_PRELOAD)) $(LIBOBJS)
|
||||||
$(addsuffix .lo,$(DLL_PRELOAD_EXTRAS)) @LIBTOOL_LINK_EXTRA@ \
|
$(addsuffix .lo,$(DLL_PRELOAD_EXTRAS)) @LIBTOOL_LINK_EXTRA@ \
|
||||||
-rpath $(libdir) -version-info $(V_MAJOR):$(V_REV):$(V_MINOR)
|
-rpath $(libdir) -version-info $(V_MAJOR):$(V_REV):$(V_MINOR)
|
||||||
|
|
||||||
becfg:
|
# Generate .conf files for all existing .conf.in files
|
||||||
@for conf in $(CONFIGS) ; do \
|
becfg: $(patsubst %.conf.in,%.conf,$(wildcard *.conf.in))
|
||||||
if test ! -f $${conf}.in ; \
|
%.conf: %.conf.in
|
||||||
then echo "Ignoring $${conf}" ;\
|
@echo Generating $@ from $^
|
||||||
continue; \
|
@sed -e 's|@DATADIR@|$(datadir)|g' \
|
||||||
fi ;\
|
|
||||||
sed -e 's|@DATADIR@|$(datadir)|g' \
|
|
||||||
-e 's|@CONFIGDIR@|$(configdir)|g' \
|
-e 's|@CONFIGDIR@|$(configdir)|g' \
|
||||||
-e 's|@DOCDIR@|$(docdir)|g' \
|
-e 's|@DOCDIR@|$(docdir)|g' \
|
||||||
-e 's|@LIBDIR@|$(libdir)/sane|g' \
|
-e 's|@LIBDIR@|$(libdir)/sane|g' \
|
||||||
-e 's|@BINDIR@|$(bindir)|g' \
|
-e 's|@BINDIR@|$(bindir)|g' \
|
||||||
-e 's|@SBINDIR@|$(sbindir)|g' \
|
-e 's|@SBINDIR@|$(sbindir)|g' \
|
||||||
-e 's|@PACKAGEVERSION@|$(package_version)|g' $${conf}.in >$${conf} ;\
|
-e 's|@PACKAGEVERSION@|$(package_version)|g' $? > $@
|
||||||
echo Generating $${conf}... ;\
|
|
||||||
done
|
|
||||||
|
|
||||||
# additional dependencies
|
# additional dependencies
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue