diff --git a/boom/manu/Makefile.common b/boom/manu/Makefile.common new file mode 100644 index 0000000..7148bd7 --- /dev/null +++ b/boom/manu/Makefile.common @@ -0,0 +1,15 @@ +BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom + +UC_NAME = $(shell echo $(NAME) | tr [a-z] [A-Z]) + +EQU = ../../dist/all.equ + +.PHONY: all test + +all: $(NAME).chr + +$(NAME).chr: $(EQU) $(NAME).gen + $(BOOM) gen2chr $(UC_NAME) $^ >$@ || { rm -rf $@; exit 1; } + +test: + $(BOOM) gen2chr -n $(UC_NAME) $(EQU) $(NAME).gen diff --git a/boom/manu/murata/Makefile b/boom/manu/murata/Makefile index e46b07a..50c7d55 100644 --- a/boom/manu/murata/Makefile +++ b/boom/manu/murata/Makefile @@ -1,4 +1,2 @@ -BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom - -murata.chr: ../../dist/all.equ murata.gen - $(BOOM) gen2chr MURATA $^ >$@ || { rm -rf $@; exit 1; } +NAME = murata +include ../Makefile.common diff --git a/boom/manu/panasonic/Makefile b/boom/manu/panasonic/Makefile index beb8ce7..2e09193 100644 --- a/boom/manu/panasonic/Makefile +++ b/boom/manu/panasonic/Makefile @@ -1,4 +1,2 @@ -BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom - -panasonic.chr: ../../dist/all.equ panasonic.gen - $(BOOM) gen2chr PANASONIC $^ >$@ || { rm -rf $@; exit 1; } +NAME = panasonic +include ../Makefile.common diff --git a/boom/manu/stackpole/Makefile b/boom/manu/stackpole/Makefile index 0282092..19897a1 100644 --- a/boom/manu/stackpole/Makefile +++ b/boom/manu/stackpole/Makefile @@ -1,4 +1,2 @@ -BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom - -stackpole.chr: ../../dist/all.equ stackpole.gen - $(BOOM) gen2chr STACKPOLE $^ >$@ || { rm -rf $@; exit 1; } +NAME = stackpole +include ../Makefile.common diff --git a/boom/manu/yageo/Makefile b/boom/manu/yageo/Makefile index 41bad93..9e18656 100644 --- a/boom/manu/yageo/Makefile +++ b/boom/manu/yageo/Makefile @@ -1,4 +1,2 @@ -BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom - -yageo.chr: ../../dist/all.equ yageo.gen - $(BOOM) gen2chr YAGEO $^ >$@ || { rm -rf $@; exit 1; } +NAME = yageo +include ../Makefile.common