Added install target for MicroMod
authoretisserant
Wed, 18 Apr 2007 13:05:15 +0200
changeset 168 f379cdef1f8e
parent 167 b2f8b91d89b5
child 169 90c0a676e631
Added install target for MicroMod
examples/Makefile.in
examples/TestMasterMicroMod/Makefile.in
--- a/examples/Makefile.in	Wed Apr 18 13:04:19 2007 +0200
+++ b/examples/Makefile.in	Wed Apr 18 13:05:15 2007 +0200
@@ -50,7 +50,14 @@
 	$(MAKE) -C gene_SYNC_HCS12 $@
 endif
 
+install:
 ifeq ($(TARGET),unix)
 	$(MAKE) -C TestMasterSlave $@
 	$(MAKE) -C TestMasterMicroMod $@
-endif
\ No newline at end of file
+endif
+
+uninstall:
+ifeq ($(TARGET),unix)
+	$(MAKE) -C TestMasterSlave $@
+	$(MAKE) -C TestMasterMicroMod $@
+endif
--- a/examples/TestMasterMicroMod/Makefile.in	Wed Apr 18 13:04:19 2007 +0200
+++ b/examples/TestMasterMicroMod/Makefile.in	Wed Apr 18 13:05:15 2007 +0200
@@ -67,6 +67,11 @@
 mrproper: clean
 	rm -f TestMaster.c
 	
+install: TestMasterMicroMod
+	mkdir -p $(PREFIX)/bin/
+	cp $< $(PREFIX)/bin/
+	
+uninstall:
+	rm -f $(PREFIX)/bin/TestMasterMicroMod
 
 
-