aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBerke Kocaoğlu <berke.kocaoglu@metu.edu.tr>2021-09-16 12:32:59 +0300
committerBerke Kocaoğlu <berke.kocaoglu@metu.edu.tr>2021-09-16 22:55:31 +0300
commit7cce7ea857321c854fc9e061edee3a32f4831d18 (patch)
treed8ad4f168d67a433278912a8d07231760aff5cbc /Makefile
parent9c73646d9c709005301d5be93d0232d89201b21e (diff)
Rename, Update Docs and Prepare for Release (#9)
Co-authored-by: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Co-authored-by: N-R-K <79544946+N-R-K@users.noreply.github.com> Co-authored-by: NRK <nrk@disroot.org> Co-authored-by: Arthur Williams <taaparthur@gmail.com> Co-authored-by: eylles <ed.ylles1997@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile40
1 files changed, 20 insertions, 20 deletions
diff --git a/Makefile b/Makefile
index 23ed7b8..9b1927c 100644
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,8 @@ ifneq (clean,$(filter clean,$(MAKECMDGOALS)))
-include config.mk
endif
-# sxiv version
-VERSION = 26
+# nsxiv version
+VERSION = 27
# PREFIX for install
PREFIX ?= /usr/local
@@ -40,9 +40,9 @@ OBJS = autoreload_$(AUTORELOAD).o commands.o image.o main.o options.o \
.SUFFIXES:
.SUFFIXES: .c .o
-all: sxiv
+all: nsxiv
-sxiv: $(OBJS)
+nsxiv: $(OBJS)
@echo "LINK $@"
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
@@ -50,7 +50,7 @@ sxiv: $(OBJS)
@echo "CC $@"
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
-$(OBJS): Makefile sxiv.h commands.lst config.h config.mk
+$(OBJS): Makefile nsxiv.h commands.lst config.h config.mk
options.o: version.h
window.o: icon/data.h
@@ -73,24 +73,24 @@ version.h: Makefile .git/index
echo "#define VERSION \"$${v:-$(VERSION)}\"" >$@
clean:
- $(RM) *.o sxiv
+ $(RM) *.o nsxiv
install: all
- @echo "INSTALL bin/sxiv"
- install -Dt $(DESTDIR)$(PREFIX)/bin sxiv
- @echo "INSTALL sxiv.1"
+ @echo "INSTALL bin/nsxiv"
+ install -Dt $(DESTDIR)$(PREFIX)/bin nsxiv
+ @echo "INSTALL nsxiv.1"
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
- sed "s!PREFIX!$(PREFIX)!g; s!VERSION!$(VERSION)!g" sxiv.1 \
- >$(DESTDIR)$(MANPREFIX)/man1/sxiv.1
- chmod 644 $(DESTDIR)$(MANPREFIX)/man1/sxiv.1
- @echo "INSTALL share/sxiv/"
- install -Dt $(DESTDIR)$(PREFIX)/share/sxiv/exec exec/*
+ sed "s!PREFIX!$(PREFIX)!g; s!VERSION!$(VERSION)!g" nsxiv.1 \
+ >$(DESTDIR)$(MANPREFIX)/man1/nsxiv.1
+ chmod 644 $(DESTDIR)$(MANPREFIX)/man1/nsxiv.1
+ @echo "INSTALL share/nsxiv/"
+ install -Dt $(DESTDIR)$(PREFIX)/share/nsxiv/exec exec/*
uninstall:
- @echo "REMOVE bin/sxiv"
- rm -f $(DESTDIR)$(PREFIX)/bin/sxiv
- @echo "REMOVE sxiv.1"
- rm -f $(DESTDIR)$(MANPREFIX)/man1/sxiv.1
- @echo "REMOVE share/sxiv/"
- rm -rf $(DESTDIR)$(PREFIX)/share/sxiv
+ @echo "REMOVE bin/nsxiv"
+ rm -f $(DESTDIR)$(PREFIX)/bin/nsxiv
+ @echo "REMOVE nsxiv.1"
+ rm -f $(DESTDIR)$(MANPREFIX)/man1/nsxiv.1
+ @echo "REMOVE share/nsxiv/"
+ rm -rf $(DESTDIR)$(PREFIX)/share/nsxiv