X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=Makefile;h=52674114628148c89e0ce5fbf11251dc40549c5e;hb=596bb133a55a6aba13b55795a9a38e29fcf1b38b;hp=b0bd42d01b709a7b0e0b269d12db6713c436cc23;hpb=d58dd3b8bc42ed31232e4145696d7dacb117a31c;p=st.git diff --git a/Makefile b/Makefile index b0bd42d..5267411 100644 --- a/Makefile +++ b/Makefile @@ -8,17 +8,20 @@ OBJ = ${SRC:.c=.o} all: options st -options: +options: options @echo st build options: @echo "CFLAGS = ${CFLAGS}" @echo "LDFLAGS = ${LDFLAGS}" @echo "CC = ${CC}" +config.h: + cp config.def.h config.h + .c.o: @echo CC $< @${CC} -c ${CFLAGS} $< -${OBJ}: config.mk +${OBJ}: config.h config.mk st: ${OBJ} @echo CC -o $@ @@ -31,7 +34,7 @@ clean: dist: clean @echo creating dist tarball @mkdir -p st-${VERSION} - @cp -R LICENSE Makefile README config.mk st.h ${SRC} st-${VERSION} + @cp -R LICENSE Makefile README config.mk config.h st.info ${SRC} st-${VERSION} @tar -cf st-${VERSION}.tar st-${VERSION} @gzip st-${VERSION}.tar @rm -rf st-${VERSION} @@ -41,7 +44,7 @@ install: all @mkdir -p ${DESTDIR}${PREFIX}/bin @cp -f st ${DESTDIR}${PREFIX}/bin @chmod 755 ${DESTDIR}${PREFIX}/bin/st - @tic st.info + @tic -s st.info uninstall: @echo removing executable file from ${DESTDIR}${PREFIX}/bin