chiark
/
gitweb
/
~ian
/
subdirmk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
buffering_output feature (nfc)
[subdirmk.git]
/
lib
/
t
/
Subdir.mk.in
diff --git
a/lib/t/Subdir.mk.in
b/lib/t/Subdir.mk.in
index a35f479de19898404252f216fc862f608ff0fa06..a957397ff559178dba79098ce36a529765c4528a 100644
(file)
--- a/
lib/t/Subdir.mk.in
+++ b/
lib/t/Subdir.mk.in
@@
-3,6
+3,7
@@
### Build script for library test
###
### (c) 2019 Mark Wooding
### Build script for library test
###
### (c) 2019 Mark Wooding
+### (c) 2019 Ian Jackson
###
###----- Licensing notice ---------------------------------------------------
###
###----- Licensing notice ---------------------------------------------------
@@
-22,20
+23,16
@@
### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
### MA 02111-1307, USA.
### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
### MA 02111-1307, USA.
-$D_CLEANFILES :=
+&TARGETS_check += & toytest.stamp
-$D/check:: $D/toytest.stamp
+&OBJECTS += & toytest.o
+&LIBS += lib/libtoy.a
-toytest_SOURCES := $(addprefix $D/, toytest.c)
-toytest_OBJECTS := $(call objects, $(toytest_SOURCES))
-toytest_LIBS = lib/libtoy.a
-$(call notice-objects, $(toytest_OBJECTS))
+&CLEAN += & toytest toytest.stamp
-
$D/toytest: $(toytest_OBJECTS) $(toytest_
LIBS)
+
&toytest: $(&OBJECTS) $(&
LIBS)
$(LINK) $^
$(LINK) $^
-$D_CLEANFILES += $D/toytest
-
$D/toytest.stamp: $D/
toytest
+
&toytest.stamp: &
toytest
$<
touch $@
$<
touch $@
-$D_CLEANFILES += $D/toytest.stamp