]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* tools/Makefile.in (install): Support DESTDIR.
authorNiels Möller <nisse@lysator.liu.se>
Wed, 20 Oct 2004 08:15:00 +0000 (10:15 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 20 Oct 2004 08:15:00 +0000 (10:15 +0200)
(uninstall): New target.

Rev: src/nettle/tools/Makefile.in:1.3

tools/Makefile.in

index a5050b4ef032489e48668087b9fb9f56d5f557d7..c4b707a0ed14e00267d4d6cea1af9854427de8f0 100644 (file)
@@ -59,8 +59,13 @@ check:
        true
 
 install: $(TARGETS)
-       $(INSTALL) -d $(bindir)
-       $(INSTALL_PROGRAM) $(TARGETS) $(bindir)
+       $(INSTALL) -d $(DESTDIR)$(bindir)
+       $(INSTALL_PROGRAM) $(TARGETS) $(DESTDIR)$(bindir)
+
+uninstall:
+       for f in $(TARGETS) ; do \
+         rm -f $(DESTDIR)$(bindir)/$$f ; \
+       done
 
 distdir: $(DISTFILES)
        cp $^ $(distdir)