My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
892 B

  1. VERSION = 0.0
  2. PREFIX = /usr/local
  3. MANPREFIX = $(PREFIX)/man
  4. #CPPFLAGS += -DDEBUG
  5. #CFLAGS += -g
  6. LDLIBS = -lncursesw
  7. OBJ = noice.o strlcat.o strlcpy.o
  8. BIN = noice
  9. all: $(BIN)
  10. $(BIN): $(OBJ)
  11. $(CC) $(CFLAGS) -o $@ $(OBJ) $(LDLIBS)
  12. noice.o: util.h config.h
  13. strlcat.o: util.h
  14. strlcpy.o: util.h
  15. install: all
  16. mkdir -p $(DESTDIR)$(PREFIX)/bin
  17. cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
  18. mkdir -p $(DESTDIR)$(MANPREFIX)/man1
  19. cp -f $(BIN).1 $(DESTDIR)$(MANPREFIX)/man1
  20. uninstall:
  21. rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
  22. rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1
  23. dist:
  24. mkdir -p noice-$(VERSION)
  25. cp LICENSE Makefile README config.def.h noice.1 noice.c queue.h strlcat.c strlcpy.c util.h noice-$(VERSION)
  26. tar -cf noice-$(VERSION).tar noice-$(VERSION)
  27. gzip noice-$(VERSION).tar
  28. rm -rf noice-$(VERSION)
  29. clean:
  30. rm -f $(BIN) $(OBJ) noice-$(VERSION).tar.gz
  31. .SUFFIXES: .def.h
  32. .def.h.h:
  33. cp $< $@