Automatically generate suitable .gitignore in packages directory
[hw/altusmetrum] / packages / Makefile
index f621437428ec653267521fe4c405a0bd2bb4fccc..841940d2f6dd04793ef5eda95504f74adc9959da 100644 (file)
@@ -5,7 +5,11 @@ FOOTPRINTS= \
        uson-8.fp \
        wson6x5.fp \
        hvqfn33.fp \
-       ZX62-B-5PA.fp
+       ZX62-B-5PA.fp \
+       TDK_PS12.fp \
+       ABM3B.fp \
+       1212-8.fp \
+       AN3111.fp
 
 .5c.fp:
        nickle $*.5c > $@
@@ -13,4 +17,10 @@ FOOTPRINTS= \
 .py.fp:
        python $*.py > $@
 
-all: $(FOOTPRINTS)
\ No newline at end of file
+all: $(FOOTPRINTS) .gitignore
+
+clean:
+       rm -f $(FOOTPRINTS)
+
+.gitignore: Makefile
+       for i in $@ $(FOOTPRINTS); do echo $$i; done > $@
\ No newline at end of file