1 --- a/Makefile 2011-01-17 20:44:18.000000000 +0100
2 +++ b/Makefile 2011-01-17 20:48:45.000000000 +0100
4 LDFLAGS = -Wl,--hash-style=gnu -Wl,--as-needed -lresolv -lnsl
8 +INSTALL = /bin/install
11 +BINDIR = $(PREFIX)/sbin
12 +sysconfdir = $(PREFIX)/etc
17 $(CXX) $(CXXFLAGS) -c $*.cc
20 - $(CP) pxe /usr/sbin/
21 - @if test ! -e /etc/pxe.conf; then \
22 - $(CP) pxe.conf /etc/; \
24 + $(INSTALL) -d $(DESTDIR)$(BINDIR)
25 + $(INSTALL) -m 744 pxe $(DESTDIR)$(BINDIR)
26 + $(INSTALL) -d $(DESTDIR)$(sysconfdir)
27 + $(INSTALL) -m 644 pxe.conf $(DESTDIR)$(sysconfdir)/pxe.conf