aozora2fmt

a tool for converting Aozora Bunko files to better formats
git clone anongit@rnpnr.xyz:aozora2fmt.git
Log | Files | Refs | Feed | README | LICENSE

Makefile (354B)


      1 # See LICENSE for license details.
      2 PREFIX = /usr/local
      3 
      4 LDFLAGS = -s
      5 
      6 BINS = aozora2fmt
      7 
      8 default: $(BINS)
      9 
     10 aozora2fmt: aozora/main.go
     11 	go build -ldflags "$(LDFLAGS)" -o $@ aozora/main.go
     12 
     13 install: $(BINS)
     14 	mkdir -p $(PREFIX)/bin
     15 	cp $(BINS) $(PREFIX)/bin
     16 	chmod 755 $(BINS:%=$(PREFIX)/bin/%)
     17 
     18 uninstall:
     19 	rm $(BINS:%=$(PREFIX)/bin/%)
     20 
     21 clean:
     22 	rm $(BINS)