Makefile.in 972 B

123456789101112131415161718192021222324252627282930313233
  1. DISTFILES= Makefile.in README.md README.ubuntu.md \
  2. conf/Makefile conf/substitute.sh conf/substitutions.conf.franchise \
  3. conf/substitutions.conf.FreeBSD conf/substitutions.conf.Linux \
  4. dashboard/*.in dist/Makefile.in etc/*.in src test/Makefile.in
  5. DISTTARGET= nodes2grafana
  6. DISTDIR= tmp/${DISTTARGET}
  7. DISTEXCLUDE= --exclude=${DISTTARGET}/src/Makefile \
  8. --exclude=${DISTTARGET}/src/promconfig.sml \
  9. --exclude=${DISTTARGET}/src/nodes2prom \
  10. --exclude=${DISTTARGET}/src/graph2prom \
  11. --exclude=${DISTTARGET}/src/json-pp \
  12. --exclude=${DISTTARGET}/src/.cm \
  13. --exclude=${DISTTARGET}/src/JSON/.cm \
  14. --exclude=${DISTTARGET}/src/*.%%HEAP_SUFFIX%%
  15. DISTTARFILE= ${DISTTARGET}.txz
  16. all: ${DISTTARFILE}
  17. ${DISTTARFILE}: ${DISTDIR} Makefile
  18. tar cvJf ${DISTTARFILE} -C tmp ${DISTEXCLUDE} ${DISTTARGET}
  19. ${DISTDIR}: tmp
  20. rm -rf $@
  21. mkdir $@
  22. cd .. && { tar cf - ${DISTFILES} | tar xpf - -C dist/${DISTDIR} ; }
  23. tmp:
  24. mkdir $@
  25. clean:
  26. rm -rf tmp
  27. rm -f ${DISTTARFILE}