This commit is contained in:
DarthMooMancer
2025-08-02 17:20:50 -04:00
parent 33184ce2e0
commit 51c90a88f8
4 changed files with 4 additions and 262 deletions
+2 -17
View File
@@ -1,5 +1,3 @@
# st - simple terminal
# See LICENSE file for copyright and license details.
.POSIX:
include config.mk
@@ -9,9 +7,6 @@ OBJ = $(SRC:.c=.o)
all: st
config.h:
cp config.def.h config.h
.c.o:
$(CC) $(STCFLAGS) -c $<
@@ -24,24 +19,14 @@ st: $(OBJ)
$(CC) -o $@ $(OBJ) $(STLDFLAGS)
clean:
rm -f st $(OBJ) st-$(VERSION).tar.gz
dist: clean
mkdir -p 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)
rm -f st $(OBJ)
install: st
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f st $(DESTDIR)$(PREFIX)/bin
chmod 755 $(DESTDIR)$(PREFIX)/bin/st
tic -sx st.info
@echo Please see the README file regarding the terminfo entry of st.
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/st
.PHONY: all clean dist install uninstall
.PHONY: all clean install uninstall