tquery

Interactive command query tool
git clone https://git.sinitax.com/sinitax/tquery
Log | Files | Refs | LICENSE | sfeed.txt

build.jst.tmpl (587B)


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