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.

10 anni fa
10 anni fa
10 anni fa
10 anni fa
10 anni fa
10 anni fa
10 anni fa
10 anni fa
10 anni fa
123456789101112131415161718192021222324252627282930313233343536373839
  1. PREFIX = /usr/local
  2. MANPREFIX = $(PREFIX)/man
  3. #CPPFLAGS += -DDEBUG
  4. #CFLAGS += -g
  5. LDLIBS = -lncursesw
  6. OBJ = noice.o strlcpy.o
  7. BIN = noice
  8. all: $(BIN)
  9. $(BIN): $(OBJ)
  10. $(CC) $(CFLAGS) -o $@ $(OBJ) $(LDLIBS)
  11. noice.o: queue.h util.h config.h
  12. strlcpy.o: util.h
  13. install: all
  14. @echo installing $(BIN) to $(DESTDIR)$(PREFIX)/bin
  15. @mkdir -p $(DESTDIR)$(PREFIX)/bin
  16. @cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
  17. @chmod 755 $(DESTDIR)$(PREFIX)/bin/$(BIN)
  18. @echo installing $(BIN).1 to $(DESTDIR)$(MANPREFIX)/man1
  19. @cp -f $(BIN).1 $(DESTDIR)$(MANPREFIX)/man1
  20. uninstall:
  21. @echo removing $(BIN) from $(DESTDIR)$(PREFIX)/bin
  22. @rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
  23. @echo removing $(BIN).1 from $(DESTDIR)$(MANPREFIX)/man1
  24. @rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1
  25. clean:
  26. rm -f $(BIN) $(OBJ)
  27. .SUFFIXES: .def.h
  28. .def.h.h:
  29. cp $< $@