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 910 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
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. VERSION = 0.1
  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. install: all
  18. mkdir -p $(DESTDIR)$(PREFIX)/bin
  19. cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
  20. mkdir -p $(DESTDIR)$(MANPREFIX)/man1
  21. cp -f $(BIN).1 $(DESTDIR)$(MANPREFIX)/man1
  22. uninstall:
  23. rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
  24. rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1
  25. dist:
  26. mkdir -p noice-$(VERSION)
  27. cp $(DISTFILES) noice-$(VERSION)
  28. tar -cf noice-$(VERSION).tar noice-$(VERSION)
  29. gzip noice-$(VERSION).tar
  30. rm -rf noice-$(VERSION)
  31. clean:
  32. rm -f $(BIN) $(OBJ) noice-$(VERSION).tar.gz
  33. .SUFFIXES: .def.h
  34. .def.h.h:
  35. cp $< $@