kopia lustrzana https://gitlab.com/sane-project/frontends
Added target "make uninstall".
Henning Meier-Geinitz <henning@meier-geinitz.de>DEVEL_2_0_BRANCH-1
rodzic
5a6208f61d
commit
5746b2921f
6
INSTALL
6
INSTALL
|
@ -35,3 +35,9 @@ make install
|
||||||
sane-1.0.2 and later.
|
sane-1.0.2 and later.
|
||||||
|
|
||||||
See also the PROBLEMS file.
|
See also the PROBLEMS file.
|
||||||
|
|
||||||
|
|
||||||
|
Uninstall
|
||||||
|
=========
|
||||||
|
|
||||||
|
To uninstall the binaries and manual pages, type `make uninstall´.
|
|
@ -46,9 +46,9 @@ distclean: clean distclean-recursive
|
||||||
|
|
||||||
depend: depend-recursive
|
depend: depend-recursive
|
||||||
|
|
||||||
all-recursive install-recursive uninstall-recursive clean-recursive distclean-recursive \
|
all-recursive install-recursive uninstall-recursive clean-recursive \
|
||||||
depend-recursive:
|
distclean-recursive depend-recursive:
|
||||||
for subdir in $(SUBDIRS); do \
|
@for subdir in $(SUBDIRS); do \
|
||||||
target=`echo $@ | sed s/-recursive//`; \
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
echo making $$target in $$subdir; \
|
echo making $$target in $$subdir; \
|
||||||
(cd $$subdir && $(MAKE) $$target) \
|
(cd $$subdir && $(MAKE) $$target) \
|
||||||
|
@ -56,4 +56,5 @@ depend-recursive:
|
||||||
done && test -z "$$fail"
|
done && test -z "$$fail"
|
||||||
|
|
||||||
.PHONY: all clean depend \
|
.PHONY: all clean depend \
|
||||||
all-recursive install-recursive clean-recursive depend-recursive
|
all-recursive install-recursive clean-recursive depend-recursive \
|
||||||
|
uninstall-recursive
|
||||||
|
|
|
@ -33,7 +33,6 @@ LN_S = @LN_S@
|
||||||
|
|
||||||
SECT1 = xscanimage.1 xcam.1
|
SECT1 = xscanimage.1 xcam.1
|
||||||
MANPAGES = $(SECT1)
|
MANPAGES = $(SECT1)
|
||||||
DOCS = sane.ps sane.dvi
|
|
||||||
LATEX = TEXINPUTS=$(srcdir):$$TEXINPUTS latex
|
LATEX = TEXINPUTS=$(srcdir):$$TEXINPUTS latex
|
||||||
DLH = TEXINPUTS=$(srcdir):$$TEXINPUTS dlh
|
DLH = TEXINPUTS=$(srcdir):$$TEXINPUTS dlh
|
||||||
MAN2HTML= nroff -man |\
|
MAN2HTML= nroff -man |\
|
||||||
|
@ -42,12 +41,13 @@ MAN2HTML= nroff -man |\
|
||||||
|
|
||||||
all: $(MANPAGES)
|
all: $(MANPAGES)
|
||||||
|
|
||||||
%.1 %.5: %.man
|
%.1: %.man
|
||||||
sed -e 's|@DATADIR@|$(datadir)|g' \
|
@sed -e 's|@DATADIR@|$(datadir)|g' \
|
||||||
-e 's|@CONFIGDIR@|$(configdir)|g' \
|
-e 's|@CONFIGDIR@|$(configdir)|g' \
|
||||||
-e 's|@LIBDIR@|$(libdir)|g' \
|
-e 's|@LIBDIR@|$(libdir)|g' \
|
||||||
-e 's|@BINDIR@|$(bindir)|g' \
|
-e 's|@BINDIR@|$(bindir)|g' \
|
||||||
-e 's|@SBINDIR@|$(sbindir)|g' $^ >$@
|
-e 's|@SBINDIR@|$(sbindir)|g' $^ >$@
|
||||||
|
@echo Generating manpage $@...
|
||||||
|
|
||||||
install: $(MANPAGES)
|
install: $(MANPAGES)
|
||||||
$(MKDIR) $(mandir)/man1
|
$(MKDIR) $(mandir)/man1
|
||||||
|
@ -56,51 +56,30 @@ install: $(MANPAGES)
|
||||||
$(INSTALL_DATA) $${page} $(mandir)/man1/$${page} || exit 1; \
|
$(INSTALL_DATA) $${page} $(mandir)/man1/$${page} || exit 1; \
|
||||||
done
|
done
|
||||||
|
|
||||||
install-docs: ps
|
uninstall:
|
||||||
$(MKDIR) $(docdir)
|
@for page in $(SECT1); do \
|
||||||
@for doc in $(DOCS); do \
|
echo Removing $${page} in $(mandir)/man1/$${page}...; \
|
||||||
echo installing $${doc} in $(docdir)/$${doc}...; \
|
rm -f $(mandir)/man1/$${page} ; \
|
||||||
$(INSTALL_DATA) $${doc} $(docdir)/$${doc} || exit 1; \
|
|
||||||
done
|
done
|
||||||
|
|
||||||
docs: ps html
|
|
||||||
|
|
||||||
sane.ind:
|
|
||||||
touch sane.ind
|
|
||||||
$(LATEX) $(srcdir)/sane
|
|
||||||
makeindex sane.idx
|
|
||||||
|
|
||||||
ps: sane.ind
|
|
||||||
-rm -f figs; $(LN_S) $(srcdir)/figs .
|
|
||||||
$(LATEX) $(srcdir)/sane
|
|
||||||
$(LATEX) $(srcdir)/sane
|
|
||||||
dvips sane.dvi -o sane.ps
|
|
||||||
|
|
||||||
html: sane.ind sane-backends-html html-man
|
|
||||||
$(DLH) $(srcdir)/sane.tex
|
|
||||||
|
|
||||||
sane-backends-html:
|
|
||||||
cd $(top_srcdir)/backend \
|
|
||||||
&& emacs -batch --load $(top_srcdir)/tools/sane-desc.el \
|
|
||||||
-f sane-desc-doit
|
|
||||||
|
|
||||||
html-man: $(MANPAGES)
|
html-man: $(MANPAGES)
|
||||||
@for page in $(MANPAGES); do \
|
@for page in $(MANPAGES); do \
|
||||||
echo "translating $${page} to $${page}.html..."; \
|
echo "translating $${page} to $${page}.html..."; \
|
||||||
cat $${page} | $(MAN2HTML) > $${page}.html; \
|
cat $${page} | $(MAN2HTML) > $${page}.html; \
|
||||||
done
|
done
|
||||||
|
|
||||||
sane.tex: sane.ind
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.toc *.aux *.log *.cp *.fn *.tp *.vr *.pg *.ky *.blg *.idx *.cb
|
rm -f *.toc *.aux *.log *.cp *.fn *.tp *.vr *.pg *.ky *.blg *.idx *.cb
|
||||||
rm -f *.ilg
|
rm -f *.ilg
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f $(MANPAGES)
|
rm -f $(MANPAGES)
|
||||||
|
for manpage in $(MANPAGES) ; do \
|
||||||
|
rm -f $${manpage}.html ; \
|
||||||
|
done
|
||||||
rm -f Makefile *~
|
rm -f Makefile *~
|
||||||
rm -f *.lot *.lof *.ind
|
rm -f *.lot *.lof *.ind
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
|
|
||||||
.PHONY: all install depend clean ps html htmlman sane-backends-html
|
.PHONY: all install depend clean ps html htmlman sane-backends-html uninstall
|
||||||
|
|
|
@ -74,4 +74,4 @@ clean:
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f Makefile
|
rm -f Makefile
|
||||||
|
|
||||||
.PHONY: all install check depend clean distclean
|
.PHONY: all install check depend clean distclean uninstall
|
||||||
|
|
|
@ -63,6 +63,8 @@ libsanei.a: $(LIBSANEI_OBJS)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
makedepend -I. -I../include *.c
|
makedepend -I. -I../include *.c
|
||||||
|
|
||||||
|
@ -73,4 +75,4 @@ clean:
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f Makefile
|
rm -f Makefile
|
||||||
|
|
||||||
.PHONY: all install check depend clean distclean
|
.PHONY: all install check depend clean distclean uninstall
|
||||||
|
|
|
@ -72,6 +72,13 @@ install: $(PROGRAMS)
|
||||||
done
|
done
|
||||||
$(INSTALL_DATA) $(srcdir)/sane-style.rc $(datadir)/sane-style.rc
|
$(INSTALL_DATA) $(srcdir)/sane-style.rc $(datadir)/sane-style.rc
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
@for program in $(BINPROGS); do \
|
||||||
|
echo removing $(bindir)/$${program}...; \
|
||||||
|
rm -f $(bindir)/$${program}; \
|
||||||
|
done
|
||||||
|
rm -f $(datadir)/sane-style.rc
|
||||||
|
|
||||||
xscanimage: $(XSCAN_OBJS) $(LIBSANEI) $(LIBLIB)
|
xscanimage: $(XSCAN_OBJS) $(LIBSANEI) $(LIBLIB)
|
||||||
$(LINK) $(XSCAN_OBJS) $(LIBSANEI) \
|
$(LINK) $(XSCAN_OBJS) $(LIBSANEI) \
|
||||||
$(LIBLIB) $(GIMP_LIBS) $(GTK_LIBS) $(LIBS)
|
$(LIBLIB) $(GIMP_LIBS) $(GTK_LIBS) $(LIBS)
|
||||||
|
@ -90,4 +97,4 @@ distclean: clean
|
||||||
depend:
|
depend:
|
||||||
makedepend $(INCLUDES) *.c
|
makedepend $(INCLUDES) *.c
|
||||||
|
|
||||||
.PHONY: all install depend clean distclean
|
.PHONY: all install depend clean distclean uninstall
|
||||||
|
|
Ładowanie…
Reference in New Issue