From: Keith Packard Date: Thu, 29 Oct 2015 01:10:20 +0000 (+0900) Subject: Auto-generate gafrc, attribs and project files if needed X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=104adf00017bd082aeeecdbb5f7fcfb19908e2ff;p=hw%2Faltusmetrum Auto-generate gafrc, attribs and project files if needed This makes sure these files exist with reasonable default content. Signed-off-by: Keith Packard --- diff --git a/pcb.mk b/pcb.mk index 5d277a8..14d8419 100644 --- a/pcb.mk +++ b/pcb.mk @@ -166,3 +166,17 @@ $(PROJECT)-big.pdf: $(PROJECT)-big.ps ps2pdf $(PROJECT)-big.ps pdf: $(PROJECT)-sch.pdf $(PROJECT)-pcb.pdf $(PROJECT)-big.pdf + +project: + (echo 'schematics $(SCHEMATICS)'; \ + echo 'output-name $(PROJECT)'; \ + echo 'elements-dir $(AM)/packages'; \ + echo 'skip-m4') > $@ + +attribs: $(AM)/attribs + cp $(AM)/attribs $@ + +gafrc: + (echo '; empty the library path and populate it with only our own symbols'; \ + echo '(reset-component-library)'; \ + echo '(load "../altusmetrum/gafrc")') > $@