X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=Makefile;h=ef3bf092f858a83c77e96f2f5d918e45b44ab4d3;hb=6db6980e27bdde6f2d444dd3cdd7a46985fa84fc;hp=cf1766c9b9c6b697fd4a3f8df227b6a0a41411d9;hpb=375efb8891a2d131d46f1582fd770d34464094e0;p=st.git diff --git a/Makefile b/Makefile index cf1766c..ef3bf09 100644 --- a/Makefile +++ b/Makefile @@ -3,13 +3,14 @@ include config.mk -SRC = st.c std.c +SRC = st.c OBJ = ${SRC:.c=.o} all: options st options: @echo st build options: + @echo "SYSTEM = ${SYSTEM}" @echo "CFLAGS = ${CFLAGS}" @echo "LDFLAGS = ${LDFLAGS}" @echo "CC = ${CC}" @@ -18,7 +19,7 @@ options: @echo CC $< @${CC} -c ${CFLAGS} $< -${OBJ}: config.mk +${OBJ}: config.h config.mk st: ${OBJ} @echo CC -o $@ @@ -31,8 +32,7 @@ clean: dist: clean @echo creating dist tarball @mkdir -p st-${VERSION} - @cp -R LICENSE Makefile README config.mk \ - st.1 ${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} @@ -42,15 +42,10 @@ install: all @mkdir -p ${DESTDIR}${PREFIX}/bin @cp -f st ${DESTDIR}${PREFIX}/bin @chmod 755 ${DESTDIR}${PREFIX}/bin/st - @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 - @mkdir -p ${DESTDIR}${MANPREFIX}/man1 - @sed "s/VERSION/${VERSION}/g" < st.1 > ${DESTDIR}${MANPREFIX}/man1/st.1 - @chmod 644 ${DESTDIR}${MANPREFIX}/man1/st.1 + @tic -s st.info uninstall: @echo removing executable file from ${DESTDIR}${PREFIX}/bin @rm -f ${DESTDIR}${PREFIX}/bin/st - @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 - @rm -f ${DESTDIR}${MANPREFIX}/man1/st.1 .PHONY: all options clean dist install uninstall