Ignore built footprints
authorKeith Packard <keithp@keithp.com>
Mon, 18 Mar 2013 21:18:52 +0000 (14:18 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 18 Mar 2013 21:19:13 +0000 (14:19 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
packages/pinheader/Makefile
packages/tyco/.gitignore [new file with mode: 0644]

index eef2cc82dc00d84bee3c3f847ce0a535c28fc454..7da0a58594dbd31c3d28b22d8a41bb57fe6a4479 100644 (file)
@@ -1,7 +1,13 @@
-all:   50mil4pin.fp
+FOOTPRINTS = \
+       50mil4pin.fp
+
+all: $(FOOTPRINTS) .gitignore
 
 50mil4pin.fp:  50milpitch.py
        ./50milpitch.py 4 > 50mil4pin.fp
 
 clean:
-       rm -f 50mil*.fp
+       rm -f $(FOOTPRINTS)
+
+.gitignore: Makefile
+       for i in $@ $(FOOTPRINTS); do echo $$i; done > $@
\ No newline at end of file
diff --git a/packages/tyco/.gitignore b/packages/tyco/.gitignore
new file mode 100644 (file)
index 0000000..5f8f282
--- /dev/null
@@ -0,0 +1 @@
+*.fp