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.

Makefile 901 B

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