My build of suckless st terminal
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.

51 lines
1.1 KiB

  1. # st - simple terminal
  2. # See LICENSE file for copyright and license details.
  3. include config.mk
  4. SRC = st.c
  5. OBJ = ${SRC:.c=.o}
  6. all: options st
  7. options:
  8. @echo st build options:
  9. @echo "SYSTEM = ${SYSTEM}"
  10. @echo "CFLAGS = ${CFLAGS}"
  11. @echo "LDFLAGS = ${LDFLAGS}"
  12. @echo "CC = ${CC}"
  13. .c.o:
  14. @echo CC $<
  15. @${CC} -c ${CFLAGS} $<
  16. ${OBJ}: config.h config.mk
  17. st: ${OBJ}
  18. @echo CC -o $@
  19. @${CC} -o $@ ${OBJ} ${LDFLAGS}
  20. clean:
  21. @echo cleaning
  22. @rm -f st ${OBJ} st-${VERSION}.tar.gz
  23. dist: clean
  24. @echo creating dist tarball
  25. @mkdir -p st-${VERSION}
  26. @cp -R LICENSE Makefile README config.mk config.h st.info ${SRC} st-${VERSION}
  27. @tar -cf st-${VERSION}.tar st-${VERSION}
  28. @gzip st-${VERSION}.tar
  29. @rm -rf st-${VERSION}
  30. install: all
  31. @echo installing executable file to ${DESTDIR}${PREFIX}/bin
  32. @mkdir -p ${DESTDIR}${PREFIX}/bin
  33. @cp -f st ${DESTDIR}${PREFIX}/bin
  34. @chmod 755 ${DESTDIR}${PREFIX}/bin/st
  35. @tic -s st.info
  36. uninstall:
  37. @echo removing executable file from ${DESTDIR}${PREFIX}/bin
  38. @rm -f ${DESTDIR}${PREFIX}/bin/st
  39. .PHONY: all options clean dist install uninstall