]> git.llucax.com Git - software/makeit.git/blobdiff - prog/Build.mak
Use $S variable when including sub-Build.mak
[software/makeit.git] / prog / Build.mak
index d3a59ed2e39909a68323f2c2a72f1c188e89e11a..71585a72bdc905dd0f999582125227d5b8eb9595 100644 (file)
@@ -1,8 +1,13 @@
 
 
+# Build the shared library
 $B/prog: $(call find_objects,cpp) $L/liblib1.so $L/liblib2.so
 $B/prog: $(call find_objects,cpp) $L/liblib1.so $L/liblib2.so
+all += prog
 
 
+# Nice shortcut target
 .PHONY: prog
 prog: $B/prog
 
 .PHONY: prog
 prog: $B/prog
 
-all += prog
+# Install the program executable
+$I/bin/prog: $B/prog
+install += $I/bin/prog