Reset title when an empty title string is given
[st.git] / Makefile
blob15db421c0e7b56e9196353ffc5b75f8ef1ba7194
1 # st - simple terminal
2 # See LICENSE file for copyright and license details.
3 .POSIX:
5 include config.mk
7 SRC = st.c x.c
8 OBJ = $(SRC:.c=.o)
10 all: st
12 config.h:
13 cp config.def.h config.h
15 .c.o:
16 $(CC) $(STCFLAGS) -c $<
18 st.o: config.h st.h win.h
19 x.o: arg.h config.h st.h win.h
21 $(OBJ): config.h config.mk
23 st: $(OBJ)
24 $(CC) -o $@ $(OBJ) $(STLDFLAGS)
26 clean:
27 rm -f st $(OBJ) st-$(VERSION).tar.gz
29 dist: clean
30 mkdir -p st-$(VERSION)
31 cp -R FAQ LEGACY TODO LICENSE Makefile README config.mk\
32 config.def.h st.info st.1 arg.h st.h win.h $(SRC)\
33 st-$(VERSION)
34 tar -cf - st-$(VERSION) | gzip > st-$(VERSION).tar.gz
35 rm -rf st-$(VERSION)
37 install: st
38 mkdir -p $(DESTDIR)$(PREFIX)/bin
39 cp -f st $(DESTDIR)$(PREFIX)/bin
40 chmod 755 $(DESTDIR)$(PREFIX)/bin/st
41 mkdir -p $(DESTDIR)$(MANPREFIX)/man1
42 sed "s/VERSION/$(VERSION)/g" < st.1 > $(DESTDIR)$(MANPREFIX)/man1/st.1
43 chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1
44 tic -sx st.info
45 @echo Please see the README file regarding the terminfo entry of st.
47 uninstall:
48 rm -f $(DESTDIR)$(PREFIX)/bin/st
49 rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1
51 .PHONY: all clean dist install uninstall