summaryrefslogtreecommitdiff
path: root/buildlib/program.mak
diff options
context:
space:
mode:
Diffstat (limited to 'buildlib/program.mak')
-rw-r--r--buildlib/program.mak6
1 files changed, 5 insertions, 1 deletions
diff --git a/buildlib/program.mak b/buildlib/program.mak
index fe0d30de3..98bea9aa5 100644
--- a/buildlib/program.mak
+++ b/buildlib/program.mak
@@ -25,12 +25,16 @@ clean: clean/$(LOCAL)
veryclean: veryclean/$(LOCAL)
# The clean rules
-.PHONY: clean/$(LOCAL) veryclean/$(LOCAL)
+.PHONY: clean/$(LOCAL) veryclean/$(LOCAL)
clean/$(LOCAL):
-rm -f $($(@F)-OBJS) $($(@F)-DEP)
veryclean/$(LOCAL): clean/$(LOCAL)
-rm -f $($(@F)-BIN)
+# The convience binary build rule
+.PHONY: $(PROGRAM)
+$(PROGRAM): $($(LOCAL)-BIN)
+
# The binary build rule
$($(LOCAL)-BIN): $($(LOCAL)-OBJS) $($(LOCAL)-MKS)
echo Building program $@