JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix build
[st.git] / Makefile
index 14da7a5..5267411 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,12 +8,15 @@ 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} $<
@@ -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,8 +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 st-256color.info
+       @tic -s st.info
 
 uninstall:
        @echo removing executable file from ${DESTDIR}${PREFIX}/bin