* Makefile.in: Add uninstall target.

This commit is contained in:
Christopher Faylor 2002-01-08 04:51:01 +00:00
parent a2e12d0c37
commit cbf7a9eb4a
2 changed files with 37 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-01-07 Ralf Habacker <Ralf.Habacker@freenet.de>
* Makefile.in: Add uninstall target.
2002-01-07 Christopher Faylor <cgf@redhat.com> 2002-01-07 Christopher Faylor <cgf@redhat.com>
* sigproc.cc (getsem): Clean up debugging output. * sigproc.cc (getsem): Clean up debugging output.

View File

@ -165,6 +165,8 @@ force:
install: install-libs install-headers install-man $(install_host) $(install_target) install: install-libs install-headers install-man $(install_host) $(install_target)
uninstall: uninstall-libs uninstall-headers uninstall-man
install-libs: $(TARGET_LIBS) install-libs: $(TARGET_LIBS)
$(INSTALL_DATA) new-$(DLL_NAME) $(bindir)/$(DLL_NAME); \ $(INSTALL_DATA) new-$(DLL_NAME) $(bindir)/$(DLL_NAME); \
for i in $^; do \ for i in $^; do \
@ -197,6 +199,37 @@ install-man:
install_host: install_host:
uninstall-libs: $(TARGET_LIBS)
rm -f $(bindir)/$(DLL_NAME); \
for i in $^; do \
rm -f $(tooldir)/lib/$$i ; \
done
uninstall-headers:
cd $(srcdir); \
for sub in `find include -name '[a-z]*' -type d -print | sort`; do \
for i in $$sub/*.h ; do \
rm -f $(tooldir)/$$sub/`basename $$i` ; \
done ; \
done ; \
rm -f $(tooldir)/include/regex.h
uninstall-man:
cd $(srcdir); \
for i in `find . -type f -name '*.2'`; do \
rm -f $(tooldir)/man/man2/`basename $$i` ; \
done; \
for i in `find . -type f -name '*.3'`; do \
rm -f $(tooldir)/man/man3/`basename $$i` ; \
done; \
for i in `find . -type f -name '*.5'`; do \
rm -f $(tooldir)/man/man5/`basename $$i` ; \
done; \
for i in `find . -type f -name '*.7'`; do \
rm -f $(tooldir)/man/man7/`basename $$i` ; \
done
clean: clean:
-rm -f *.o *.dll *.a *.exp junk *.base version.cc regexp/*.o winver_stamp *.exe *.d *stamp* *_magic.h -rm -f *.o *.dll *.a *.exp junk *.base version.cc regexp/*.o winver_stamp *.exe *.d *stamp* *_magic.h