tagpic

posix tagging gallery
git clone git://kloet.net/tagpic
Download | Log | Files | Refs | LICENSE

Makefile (514B)


      1 # tagpic - posix tagged gallery
      2 # See LICENSE file for copyright and license details.
      3 
      4 PREFIX ?= /usr/local
      5 BINDIR ?= $(PREFIX)/bin
      6 
      7 BINARIES = tagpic tagpicd
      8 
      9 all: tagpicd
     10 
     11 tagpicd: tagpicd.go
     12 	go build -o tagpicd tagpicd.go
     13 
     14 clean:
     15 	rm -f tagpicd
     16 
     17 install: all
     18 	mkdir -p $(DESTDIR)$(BINDIR)
     19 	cp $(BINARIES) $(DESTDIR)$(BINDIR)/
     20 	chmod 755 $(DESTDIR)$(BINDIR)/tagpic $(DESTDIR)$(BINDIR)/tagpicd
     21 
     22 uninstall:
     23 	rm -f $(DESTDIR)$(BINDIR)/tagpic
     24 	rm -f $(DESTDIR)$(BINDIR)/tagpicd
     25 
     26 .PHONY: all clean install uninstall