Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/utils/boisy/makefile @ 2835:c1892376e7a7 lwtools-port
Makefiles: Do not let $(RM) silently fail
The - in front of $(RM) was probably remains from
a time when RM was not rm -f, and is not needed any
longer.
In general, if something fails we should notice and fix it, so
using the preceding "-" in makefiles is not a good practice.
The only occurences left are the SOFTLINKs in a few sys/makefile's.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Wed, 10 Jul 2013 19:45:32 +0200 |
parents | dd5499bc4bdd |
children | 84d9d5765057 |
rev | line source |
---|---|
0 | 1 # OS-9 Commands/Utilities |
2 # | |
3 | |
1407 | 4 include ../../../rules.mak |
0 | 5 |
1407 | 6 DEPENDS = ./makefile |
0 | 7 |
8 CMDS = bawk del grep mode send timer bigbro font makdir \ | |
375 | 9 more tee joypoll |
0 | 10 |
11 ALLOBJS = $(CMDS) | |
12 | |
2814
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
13 DSKBOISYUTILS = boisy_utils.dsk |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
14 |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
15 DSKS = $(DSKBOISYUTILS) |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
16 |
1407 | 17 all: banner $(ALLOBJS) $(DEPENDS) |
18 | |
19 banner: | |
1366 | 20 @$(ECHO) "**************************************************" |
21 @$(ECHO) "* *" | |
22 @$(ECHO) "* Boisy Pitre's Utilities *" | |
23 @$(ECHO) "* *" | |
24 @$(ECHO) "**************************************************" | |
2814
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
25 |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
26 $(DSKBOISYUTILS): $(CMDS) |
2835
c1892376e7a7
Makefiles: Do not let $(RM) silently fail
Tormod Volden <debian.tormod@gmail.com>
parents:
2814
diff
changeset
|
27 $(RM) $@ |
2814
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
28 $(OS9FORMAT) $@ |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
29 $(MAKDIR) $@,CMDS |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
30 $(CP) $(CMDS) $@,CMDS |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
31 $(foreach file, $(CMDS), $(OS9ATTR_EXEC) $@,CMDS/$(file);) |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
32 |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
33 dsk: all $(DSKS) |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
34 |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
35 dskcopy: dsk |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
36 $(CP) $(DSKS) $(DSKDIR) |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
37 |
0 | 38 clean: |
2814
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
39 $(RM) $(ALLOBJS) $(DSKS) |
0 | 40 |
2814
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
41 info: |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
42 @echo "*** Boisy Pitre's Utilities ***" |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
43 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |
dd5499bc4bdd
Updated makefile(s) to create disk images and info for 3rdparty/utils/
David Ladd <drencor-xeen@users.sf.net>
parents:
1407
diff
changeset
|
44 |