Automatically generate suitable .gitignore in packages directory
authorKeith Packard <keithp@keithp.com>
Mon, 18 Mar 2013 20:59:30 +0000 (13:59 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 18 Mar 2013 20:59:30 +0000 (13:59 -0700)
Ignore built packages

Signed-off-by: Keith Packard <keithp@keithp.com>
packages/Makefile

index bf8875b0606dadd672fcbd12d67bbb3dd3dc63f5..841940d2f6dd04793ef5eda95504f74adc9959da 100644 (file)
@@ -17,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