pipeln

Pipeline creation tool
git clone https://git.sinitax.com/sinitax/pipeln
Log | Files | Refs | README | LICENSE | sfeed.txt

build.jst.tmpl (562B)


      1#default PREFIX /usr/local
      2#default BINDIR /bin
      3#default CC gcc
      4
      5#ifdef PIPELN_DEBUG
      6#define DEBUG
      7#endif
      8
      9#ifdef DEBUG
     10#define OPT_CFLAGS -Og -g
     11#else
     12#define OPT_CFLAGS -O2
     13#endif
     14
     15cflags = -std=c99 -Wunused-variable -Wunused-function -Wconversion
     16		#{OPT_CFLAGS} #{EXTRA_CFLAGS} #{PIPELN_EXTRA_CFLAGS}
     17
     18rule cc
     19	#{CC} -o $out $in $cflags
     20
     21target pipeln
     22	cc pipeln.c
     23
     24command install
     25	install -m755 pipeln -t "#{DESTDIR}#{PREFIX}#{BINDIR}"
     26
     27command uninstall
     28	rm -f "#{DESTDIR}#{PREFIX}#{BINDIR}/pipeln"
     29
     30command clean
     31	rm -f pipeln
     32
     33command all
     34	just pipeln
     35