tmpl

Simple key-value templator
git clone https://git.sinitax.com/sinitax/tmpl
Log | Files | Refs | README | LICENSE | sfeed.txt

Makefile (517B)


      1PREFIX ?= /usr/local
      2BINDIR ?= /bin
      3MANDIR ?= /man/man1
      4
      5CFLAGS = -std=c99 -Wunused-variable -Wunused-function -Wconversion
      6
      7ifeq ($(DEBUG),1)
      8CFLAGS += -Og -g
      9else
     10CFLAGS += -O2
     11endif
     12
     13all: tmpl
     14
     15clean:
     16	rm -f tmpl
     17
     18tmpl: tmpl.c
     19	$(CC) -o $@ $< $(CFLAGS)
     20
     21install:
     22	install -m755 tmpl -D -t "$(DESTDIR)$(PREFIX)$(BINDIR)"
     23	install -m755 tmpl.1 -D -t "$(DESTDIR)$(PREFIX)$(MANDIR)"
     24
     25uninstall:
     26	rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)/tmpl"
     27	rm -f "$(DESTDIR)$(PREFIX)$(MANDIR)/tmpl"
     28
     29.PHONY: all clean install uninstall