aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8d8b5d9..3e00c5c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,9 @@
-pinout.csf: pins pin2csf.pl
- ./pin2csf.pl < pins > $@ || rm -f $@
+FILES := $(patsubst %.pins,%.csf,$(wildcard *.pins))
+
+all : $(FILES)
+
+%.csf: %.pins pin2csf.pl
+ perl pin2csf.pl < $< > $@ || rm -f $@
+
+clean:
+ rm -f *.csf