Re: Makefile and DESTDIR parameter
Sven Köhler <[email protected]>
| Newsgroups | gmane.linux.network.bridge.ebtables.devel |
|---|---|
| Message-ID | <[email protected]> |
>>> the Makefiles of ebtables and arptables should support the DESTDIR
>>> parameter. That would make things easier - for example writing an ebuild
>>> fÃŒr gentoo ;-)
>>
>> The current CVS of both ebtables and arptables have this support.
>
> At least in ebtables' Makefile i miss something.
> All directories are created but BINPATH isn't.
> You should add "mkdir -p $(BINPATH)".
Here's a patch:
--- Makefile 21 Jan 2004 20:39:54 -0000 1.27
+++ Makefile 9 Feb 2004 03:56:44 -0000
@@ -4,7 +4,7 @@
PROGVERSION:=2.0.7
PROGDATE:=January\ 2004
-LIBDIR?=/usr/lib/
+LIBDIR?=$(DESTDIR)/usr/lib/
MANDIR?=$(DESTDIR)/usr/local/man
CFLAGS:=-Wall -Wunused
CC:=gcc
@@ -68,10 +68,12 @@
.PHONY: exec
exec: ebtables
+ mkdir -p $(BINPATH)
install -m 0755 -o root -g root $< $(BINFILE)
.PHONY: install
install: $(MANDIR)/man8/ebtables.8 $(ETHERTYPESFILE) exec
+ mkdir -p $(LIBDIR)
install -m 0755 extensions/*.so $(LIBDIR)
install -m 0755 *.so $(LIBDIR)
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn