]> Sergey Matveev's repositories - st.git/blobdiff - Makefile
Unhide cursor on RIS (\033c)
[st.git] / Makefile
index 128ee9d406f58d269130ee167a862572ea905eea..15db421c0e7b56e9196353ffc5b75f8ef1ba7194 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,13 +7,7 @@ include config.mk
 SRC = st.c x.c
 OBJ = $(SRC:.c=.o)
 
-all: options st
-
-options:
-       @echo st build options:
-       @echo "CFLAGS  = $(STCFLAGS)"
-       @echo "LDFLAGS = $(STLDFLAGS)"
-       @echo "CC      = $(CC)"
+all: st
 
 config.h:
        cp config.def.h config.h
@@ -22,19 +16,21 @@ config.h:
        $(CC) $(STCFLAGS) -c $<
 
 st.o: config.h st.h win.h
-x.o: arg.h st.h win.h
+x.o: arg.h config.h st.h win.h
 
 $(OBJ): config.h config.mk
 
 st: $(OBJ)
-       $(CC) $(STLDFLAGS) -o $@ $(OBJ)
+       $(CC) -o $@ $(OBJ) $(STLDFLAGS)
 
 clean:
        rm -f st $(OBJ) st-$(VERSION).tar.gz
 
 dist: clean
        mkdir -p st-$(VERSION)
-       cp -R LICENSE Makefile README config.mk config.def.h st.info st.1 arg.h $(SRC) st-$(VERSION)
+       cp -R FAQ LEGACY TODO LICENSE Makefile README config.mk\
+               config.def.h st.info st.1 arg.h st.h win.h $(SRC)\
+               st-$(VERSION)
        tar -cf - st-$(VERSION) | gzip > st-$(VERSION).tar.gz
        rm -rf st-$(VERSION)
 
@@ -52,4 +48,4 @@ uninstall:
        rm -f $(DESTDIR)$(PREFIX)/bin/st
        rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1
 
-.PHONY: all options clean dist install uninstall
+.PHONY: all clean dist install uninstall