Ver código fonte

rename files, and convert makefile to be more generic...

add generated files to .gitignore...
main
John-Mark Gurney 1 ano atrás
pai
commit
97d0de193f
4 arquivos alterados com 12 adições e 7 exclusões
  1. +8
    -0
      .gitignore
  2. +4
    -7
      Makefile
  3. +0
    -0
      diag.getxt
  4. +0
    -0
      log.getxt

+ 8
- 0
.gitignore Ver arquivo

@@ -1,3 +1,11 @@
diag.html
diag.txt
.DS_Store

# make this from *.getxt -> *.diag and *.html
diag.diag
embedlab1.diag
log.diag
diag.html
embedlab1.html
log.html

+ 4
- 7
Makefile Ver arquivo

@@ -1,15 +1,12 @@
# https://github.com/ironcamel/Graph-Easy
log.txt: log_inp.txt box.sh
graph-easy < $< | sh box.sh > $@

log.html: log.txt
(cat $<; echo; echo '<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="markdeep.min.js" charset="utf-8"></script><script src="https://casual-effects.com/markdeep/latest/markdeep.min.js" charset="utf-8"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script>') > $@
.SUFFIXES: .getxt .diag .html

diag.txt: diag_inp.txt box.sh
.getxt.diag: box.sh
graph-easy < $< | sh box.sh > $@

diag.html: diag.txt
.diag.html:
(cat $<; echo; echo '<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="markdeep.min.js" charset="utf-8"></script><script src="https://casual-effects.com/markdeep/latest/markdeep.min.js" charset="utf-8"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script>') > $@

diagtest:
ls box.sh diag_inp.txt Makefile | entr sh -c 'make diag.txt && cat diag.txt'
ls box.sh diag.getxt Makefile | entr sh -c 'make diag.diag && cat diag.diag'

diag_inp.txt → diag.getxt Ver arquivo


log_inp.txt → log.getxt Ver arquivo


Carregando…
Cancelar
Salvar