streamlet-examples/Makefile
branchv_0
changeset 89 25a11859975b
parent 86 3caa19520689
child 92 cf4971342380
--- a/streamlet-examples/Makefile	Sat Apr 24 20:22:59 2021 +0200
+++ b/streamlet-examples/Makefile	Sun Apr 25 18:47:57 2021 +0200
@@ -15,26 +15,26 @@
 # You should have received a copy of the GNU General Public License
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
 
-all: xpath pid qr jar_info zip_info
+all: xpath pid qr-decode jar_info zip_info
 	
 .PHONY: all clean
 
-xpath: streamlet-common.h xpath.cpp
-	g++ -g -fno-omit-frame-pointer -fsanitize=address xpath.cpp -o xpath $(shell pkg-config --libs --cflags libxml++-2.6)
+xpath: xpath.cpp streamlet-common.h
+	g++ -g -fno-omit-frame-pointer -fsanitize=address $(<) -o $(@) $(shell pkg-config --libs --cflags libxml++-2.6)
 
-pid: streamlet-common.h pid.cpp
-	g++ -g -fno-omit-frame-pointer -fsanitize=address pid.cpp -o pid
+pid: pid.cpp streamlet-common.h
+	g++ -g -fno-omit-frame-pointer -fsanitize=address $(<) -o $(@)
 
-qr: streamlet-common.h qr.cpp
-	g++ -g -fno-omit-frame-pointer -fsanitize=address qr.cpp -o qr $(shell pkg-config --libs --cflags relpipe-lib-xmlwriter.cpp zbar Magick++)
+qr-decode: qr-decode.cpp streamlet-common.h
+	g++ -g -fno-omit-frame-pointer -fsanitize=address $(<) -o $(@) $(shell pkg-config --libs --cflags relpipe-lib-xmlwriter.cpp zbar Magick++)
 
-jar_info: Streamlet.java JarInfo.java
-	javac JarInfo.java
+jar_info: JarInfo.java Streamlet.java
+	javac $(<)
 	jar cfe jar_info JarInfo Streamlet*.class JarInfo.class
-	chmod +x jar_info
+	chmod +x $(@)
 
 zip_info: jar_info
-	ln -s jar_info zip_info
+	ln -s jar_info $(@)
 
 clean:
 	rm -f xpath