cgo

[Fork] Gopher Client
git clone https://git.jojolepro.com/cgo.git
Log | Files | Refs | README | LICENSE

Makefile (564B)


      1 # see cgo.c for copyright and license details
      2 PREFIX = /usr/local
      3 MANPREFIX = $(PREFIX)/share/man
      4 CC = cc
      5 CFLAGS ?= -O2 -Wall
      6 OBJ = cgo.o
      7 BIN = cgo
      8 
      9 default: $(OBJ)
     10 	$(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(OBJ)
     11 
     12 clean:
     13 	rm -f $(OBJ) $(BIN)
     14 
     15 install: default
     16 	@mkdir -p $(DESTDIR)$(PREFIX)/bin/
     17 	@install $(BIN) $(DESTDIR)$(PREFIX)/bin/${BIN}
     18 	@mkdir -p $(DESTDIR)$(MANPREFIX)/man1
     19 	@cp cgo.1 $(DESTDIR)$(MANPREFIX)/man1/cgo.1
     20 	@chmod 644 $(DESTDIR)$(MANPREFIX)/man1/cgo.1
     21 
     22 uninstall:
     23 	@rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
     24 	@rm -r $(DESTDIR)$(MANPREFIX)/man1/cgo.1