My build of the simple terminal from suckless.org.
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.
 
 
 
 
 

58 lignes
1.2 KiB

  1. # st - simple terminal
  2. # See LICENSE file for copyright and license details.
  3. .POSIX:
  4. include config.mk
  5. SRC = st.c x.c
  6. OBJ = $(SRC:.c=.o)
  7. all: options st
  8. options:
  9. @echo st build options:
  10. @echo "CFLAGS = $(STCFLAGS)"
  11. @echo "LDFLAGS = $(STLDFLAGS)"
  12. @echo "CC = $(CC)"
  13. config.h:
  14. cp config.def.h config.h
  15. .c.o:
  16. $(CC) $(STCFLAGS) -c $<
  17. st.o: config.h st.h win.h
  18. x.o: arg.h config.h st.h win.h
  19. $(OBJ): config.h config.mk
  20. st: $(OBJ)
  21. $(CC) -o $@ $(OBJ) $(STLDFLAGS)
  22. clean:
  23. rm -f st $(OBJ) st-$(VERSION).tar.gz
  24. dist: clean
  25. mkdir -p st-$(VERSION)
  26. cp -R FAQ LEGACY TODO LICENSE Makefile README config.mk\
  27. config.def.h st.info st.1 arg.h st.h win.h $(SRC)\
  28. st-$(VERSION)
  29. tar -cf - st-$(VERSION) | gzip > st-$(VERSION).tar.gz
  30. rm -rf st-$(VERSION)
  31. install: st
  32. mkdir -p $(DESTDIR)$(PREFIX)/bin
  33. cp -f st $(DESTDIR)$(PREFIX)/bin
  34. chmod 755 $(DESTDIR)$(PREFIX)/bin/st
  35. mkdir -p $(DESTDIR)$(MANPREFIX)/man1
  36. sed "s/VERSION/$(VERSION)/g" < st.1 > $(DESTDIR)$(MANPREFIX)/man1/st.1
  37. chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1
  38. tic -sx st.info
  39. @echo Please see the README file regarding the terminfo entry of st.
  40. uninstall:
  41. rm -f $(DESTDIR)$(PREFIX)/bin/st
  42. rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1
  43. .PHONY: all options clean dist install uninstall