wd

Workdir changer
git clone https://git.sinitax.com/sinitax/wd
Log | Files | Refs | LICENSE | sfeed.txt

Makefile (321B)


      1PREFIX ?= /usr/local
      2BINDIR ?= /bin
      3
      4CFLAGS = -Wunused-variable -Wunused-function -Wconversion
      5
      6all: wd
      7
      8clean:
      9	rm -f wd
     10
     11wd: wd.c
     12	$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
     13
     14install:
     15	install -m755 wd -t "$(DESTDIR)$(PREFIX)$(BINDIR)"
     16
     17uninstall:
     18	rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)/wd"
     19
     20.PHONY: all install uninstall clean