aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShivesh Mandalia <mail@shivesh.org>2023-02-11 20:49:06 +0000
committerShivesh Mandalia <mail@shivesh.org>2023-02-11 20:49:06 +0000
commit1c3039d21a53d533991a316816d0b7a5c5fdbc51 (patch)
treed7f19c9723fb9e4179fa243993dc6d7eee0b21ce
parentbe156b33d1e38031e2bdc527d22262bf65ce98b9 (diff)
downloadst-1c3039d21a53d533991a316816d0b7a5c5fdbc51.tar.gz
st-1c3039d21a53d533991a316816d0b7a5c5fdbc51.zip
compile with gcc, fix compile error, restore st desktop install
-rw-r--r--Makefile5
-rw-r--r--config.h2
-rw-r--r--config.mk2
3 files changed, 4 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 50112f1..5152b8b 100644
--- a/Makefile
+++ b/Makefile
@@ -50,12 +50,11 @@ install: st
tic -sx st.info
@echo Please see the README file regarding the terminfo entry of st.
mkdir -p $(DESTDIR)$(PREFIX)/share/applications
- # Use tabbed to launch st
- # cp -f st.desktop $(DESTDIR)$(PREFIX)/share/applications
+ cp -f st.desktop $(DESTDIR)$(PREFIX)/share/applications
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/st
rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1
- # rm -f $(DESTDIR)$(PREFIX)/share/applications/st.desktop
+ rm -f $(DESTDIR)$(PREFIX)/share/applications/st.desktop
.PHONY: all options clean dist install uninstall
diff --git a/config.h b/config.h
index e14c6bd..96e97f4 100644
--- a/config.h
+++ b/config.h
@@ -138,7 +138,7 @@ static const char *colorname[] = {
*/
unsigned int defaultfg = 258;
unsigned int defaultbg = 259;
-static unsigned int defaultcs = 256;
+unsigned int defaultcs = 256;
static unsigned int defaultrcs = 257;
/*
diff --git a/config.mk b/config.mk
index c56c4bd..00977b5 100644
--- a/config.mk
+++ b/config.mk
@@ -38,4 +38,4 @@ STLDFLAGS = $(LIBS) $(LDFLAGS)
#MANPREFIX = ${PREFIX}/man
# compiler and linker
-CC = tcc
+CC = gcc