aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-15 20:07:14 +0200
committerMattias Andrée <maandree@kth.se>2024-08-15 20:07:14 +0200
commit1e9b65e4b4efe9f805f8e270120ce06fa88ec032 (patch)
tree8cbefec337b34ea036c5d66f34a6c995757ea2c6 /Makefile
downloadgit-rediff-1e9b65e4b4efe9f805f8e270120ce06fa88ec032.tar.gz
git-rediff-1e9b65e4b4efe9f805f8e270120ce06fa88ec032.tar.bz2
git-rediff-1e9b65e4b4efe9f805f8e270120ce06fa88ec032.tar.xz
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..803a6e7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,37 @@
+.POSIX:
+
+CONFIGFILE = config.mk
+include $(CONFIGFILE)
+
+OBJ =\
+ git-rediff.o
+
+HDR =
+
+all: git-rediff
+$(OBJ): $(HDR)
+
+.c.o:
+ $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
+
+git-rediff: $(OBJ)
+ $(CC) -o $@ $(OBJ) $(LDFLAGS)
+
+install: git-rediff
+ mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/"
+ cp -- git-rediff "$(DESTDIR)$(PREFIX)/bin/"
+ cp -- git-rediff.1 "$(DESTDIR)$(MANPREFIX)/man1/"
+
+uninstall:
+ -rm -f -- "$(DESTDIR)$(PREFIX)/bin/git-rediff"
+ -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/git-rediff.1"
+
+clean:
+ -rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch *.gcov *.gcno *.gcda
+ -rm -f -- git-rediff
+
+.SUFFIXES:
+.SUFFIXES: .o .c
+
+.PHONY: all install uninstall clean