My build of nnn with minor changes
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

37 lignes
611 B

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