1 # (C) Copyright IBM Corp. 2004, 2005, 2006
2 # Author: Andy Whitcroft <andyw@uk.ibm.com>
4 # The Console Multiplexor is released under the GNU Public License V2
6 PREFIX
=/usr
/local
/conmux
8 BINS
=console conmux-attach
10 SBIN
=conmux-registry conmux start
12 MODULES
=helpers drivers
17 @
[ -d
$(BASE
) ] || mkdir
-p
$(BASE
)
18 @
[ -d
$(BASE
)/bin
] || mkdir
$(BASE
)/bin
19 @
[ -d
$(BASE
)/lib
] || mkdir
$(BASE
)/lib
20 @
[ -d
$(BASE
)/sbin
] || mkdir
$(BASE
)/sbin
21 @
[ -d
$(BASE
)/log
] || mkdir
$(BASE
)/log
22 @
[ -d
$(BASE
)/etc
] || mkdir
$(BASE
)/etc
23 for f in
$(BINS
); do \
24 rm -f
$(BASE
)/bin
/$$f; \
25 cp
-p
$$f $(BASE
)/bin
/$$f; \
26 chmod
755 $(BASE
)/bin
/$$f; \
28 for f in
$(SBIN
); do \
29 rm -f
$(BASE
)/sbin
/$$f; \
30 cp
-p
$$f $(BASE
)/sbin
/$$f; \
31 chmod
755 $(BASE
)/sbin
/$$f; \
33 for f in
$(LIBS
); do \
34 rm -f
$(BASE
)/lib
/$$f; \
35 cp
-p
$$f $(BASE
)/lib
/$$f; \
36 chmod
644 $(BASE
)/lib
/$$f; \
40 $(MAKE
) BUILD
=build
install
41 (cd build
; tar cf
- *) | gzip
>conmux.tgz
47 include $(patsubst %, %/module.mk
, $(MODULES
))