home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 mARCH
/
PCWK3A99.iso
/
Linux
/
DDD331
/
DDD-3_1_.000
/
DDD-3_1_
/
ddd-3.1.1
/
ddd
/
Makefile.bin
< prev
next >
Wrap
Makefile
|
1997-10-08
|
777b
|
35 lines
# $Id: Makefile.bin,v 1.3 1997/10/08 18:38:36 zeller Exp $ -*- Makefile -*-
# Create DDD in a separate binary directory.
# Usage: In the DDD directory, run `make -f Makefile.bin TARGET' (or
# link `Makefile.bin' to `Makefile'). All targets will be made in an
# architecture-dependent binary directory named `../`uname'/ddd'.
# Make target in architecture-dependent binary directory
MAKE_IT = \
@dir="../`sh ../config.guess`/ddd"; \
test -d $$dir || mkdir $$dir; \
cd $$dir; \
test -f Makefile || ( cd ..; ../configure ); \
$(MAKE) $@
# Default target
all: FORCE
$(MAKE_IT)
# Override implicit rules
%.o: %.C
$(MAKE_IT)
%.o: %.c
$(MAKE_IT)
# Sun CC has phony targets like `.INIT' or `.DONE'...
.%: FORCE
@:
# Catch-all rule
%: FORCE
$(MAKE_IT)
FORCE: ;