Added target "uninstall".

Henning Meier-Geinitz <henning@meier-geinitz.de>
DEVEL_2_0_BRANCH-1
Henning Geinitz 2001-05-21 20:20:54 +00:00
rodzic 13857301a9
commit fdf421eb8c
7 zmienionych plików z 47 dodań i 9 usunięć

Wyświetl plik

@ -54,6 +54,9 @@ install: install-recursive
$(INSTALL_DATA) $${file} $(includedir)/sane || exit 1; \ $(INSTALL_DATA) $${file} $(includedir)/sane || exit 1; \
done done
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.
# #
@ -74,8 +77,8 @@ distclean: clean distclean-recursive
depend: depend-recursive depend: depend-recursive
all-recursive install-recursive clean-recursive distclean-recursive \ all-recursive install-recursive clean-recursive distclean-recursive \
depend-recursive: depend-recursive uninstall-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) \
@ -83,4 +86,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

Wyświetl plik

@ -127,6 +127,10 @@ install:
fi; \ fi; \
done done
uninstall:
rm -rf $(libsanedir) $(configdir)
rm -f $(libdir)/libsane.*
dll.lo: dll-preload.c dll.lo: dll-preload.c
dll-preload.c: dll-preload.c:
@ -293,4 +297,4 @@ clean:
distclean: clean distclean: clean
rm -f Makefile libsane.so rm -f Makefile libsane.so
.PHONY: all install depend clean distclean .PHONY: all install depend clean distclean uninstall

Wyświetl plik

@ -100,6 +100,21 @@ install: all
$(INSTALL_DATA) $${doc} $(docdir)/$${doc}; \ $(INSTALL_DATA) $${doc} $(docdir)/$${doc}; \
done done
uninstall:
@for page in $(SECT1); do \
echo removing $${page} in $(mandir)/man1/$${page}...; \
rm -f $(mandir)/man1/$${page}; \
done
@for page in $(SECT5); do \
echo removing $${page} in $(mandir)/man5/$${page}...; \
rm -f $(mandir)/man5/$${page}; \
done
@for page in $(SECT7); do \
echo removing $${page} in $(mandir)/man7/$${page}...; \
rm -f $(mandir)/man7/$${page}; \
done
rm -rf $(docdir)
sane.ind: sane.tex net.tex sane.ind: sane.tex net.tex
@echo Generating index for sane.ps... @echo Generating index for sane.ps...
@touch sane.ind @touch sane.ind
@ -167,4 +182,4 @@ distclean: clean
depend: depend:
.PHONY: all install depend clean html html-man sane-html install-mostang .PHONY: all install depend clean html html-man sane-html install-mostang uninstall

Wyświetl plik

@ -71,6 +71,14 @@ install: $(PROGRAMS)
$(sbindir)/$${program}; \ $(sbindir)/$${program}; \
done done
uninstall:
@for program in $(BINPROGS); do \
rm -f $(bindir)/$${program}; \
done
@for program in $(SBINPROGS); do \
rm -f $(sbindir)/$${program}; \
done
test: test.o $(LIBSANE) $(LIBLIB) test: test.o $(LIBSANE) $(LIBLIB)
@$(LIBTOOL) $(MLINK) $(LINK) test.o $(LIBSANE) $(LIBLIB) $(LIBS) @$(LIBTOOL) $(MLINK) $(LINK) test.o $(LIBSANE) $(LIBLIB) $(LIBS)
@ -91,4 +99,4 @@ distclean: clean
depend: depend:
makedepend $(INCLUDES) *.c makedepend $(INCLUDES) *.c
.PHONY: all install depend clean distclean .PHONY: all install depend clean distclean uninstall

Wyświetl plik

@ -66,6 +66,8 @@ liblib.a: $(LIBLIB_OBJS)
install: install:
uninstall:
check: check:
depend: depend:
@ -78,4 +80,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

Wyświetl plik

@ -70,6 +70,8 @@ libsanei.a: $(LIBSANEI_OBJS)
install: install:
uninstall:
check: test_wire check: test_wire
./test_wire ./test_wire
@ -89,4 +91,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

Wyświetl plik

@ -69,6 +69,9 @@ install: sane-config sane-find-scanner
$(INSTALL_SCRIPT) sane-config $(bindir)/sane-config $(INSTALL_SCRIPT) sane-config $(bindir)/sane-config
$(INSTALL_PROGRAM) sane-find-scanner $(bindir)/sane-find-scanner $(INSTALL_PROGRAM) sane-find-scanner $(bindir)/sane-find-scanner
uninstall:
rm -f $(bindir)/sane-config $(bindir)/sane-find-scanner
sane-config: sane-config.in $(top_builddir)/config.status sane-config: sane-config.in $(top_builddir)/config.status
cd $(top_builddir) \ cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
@ -94,4 +97,4 @@ clean:
distclean: clean distclean: clean
rm -f Makefile $(DESTINATIONS) mustek600IIn-off rm -f Makefile $(DESTINATIONS) mustek600IIn-off
.PHONY: all install depend clean distclean .PHONY: all install depend clean distclean uninstall