22 lines
702 B
Diff
22 lines
702 B
Diff
--- Makefile.in 2010-06-07 02:47:02.000000000 +0200
|
|
+++ Makefile.in-gil 2011-02-02 15:40:09.000000000 +0100
|
|
@@ -1,3 +1,5 @@
|
|
+DESTDIR =
|
|
+
|
|
src = $(wildcard src/*.c) $(wildcard src/serial/*.c)
|
|
hdr = $(wildcard src/*.h) $(wildcard src/serial/*.h)
|
|
obj = $(src:.c=.o)
|
|
@@ -24,9 +26,9 @@
|
|
|
|
.PHONY: install
|
|
install: $(bin)
|
|
- $(INSTALL) -d $(PREFIX)/bin
|
|
- $(INSTALL) -m 755 $(bin) $(PREFIX)/bin/$(bin)
|
|
- $(INSTALL) -m 755 $(srcdir)/$(ctl) $(PREFIX)/bin/$(ctl)
|
|
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
|
|
+ $(INSTALL) -m 755 $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)
|
|
+ $(INSTALL) -m 755 $(srcdir)/$(ctl) $(DESTDIR)$(PREFIX)/bin/$(ctl)
|
|
cd $(srcdir) && ./setup_init --no-install
|
|
|
|
# [ -d /etc/hal/fdi/policy ] && \
|