Added
Link Here
|
1 |
--- Makefile.orig 2023-11-27 14:14:44 UTC |
2 |
+++ Makefile |
3 |
@@ -11,26 +11,11 @@ APPDIR ?= share/applications |
4 |
MANDIR ?= share/man |
5 |
APPDIR ?= share/applications |
6 |
|
7 |
-ifneq (, $(shell which $(GIT) 2>/dev/null)) |
8 |
-export SOURCE_DATE_EPOCH ?= $(shell $(GIT) log -1 --pretty=%ct) |
9 |
-endif |
10 |
- |
11 |
all: senpai doc |
12 |
|
13 |
senpai: |
14 |
$(GO) build $(GOFLAGS) ./cmd/senpai |
15 |
|
16 |
-ifeq (, $(shell which $(SCDOC) 2>/dev/null)) |
17 |
-$(warning "$(SCDOC) not found, skipping building documentation") |
18 |
-doc: |
19 |
-else |
20 |
-doc: doc/senpai.1 doc/senpai.5 |
21 |
-doc/senpai.1: doc/senpai.1.scd |
22 |
- $(SCDOC) < doc/senpai.1.scd > doc/senpai.1 |
23 |
-doc/senpai.5: doc/senpai.5.scd |
24 |
- $(SCDOC) < doc/senpai.5.scd > doc/senpai.5 |
25 |
-endif |
26 |
- |
27 |
clean: |
28 |
$(RM) -rf senpai doc/senpai.1 doc/senpai.5 |
29 |
install: |
30 |
@@ -39,8 +24,6 @@ install: |
31 |
mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man5 |
32 |
mkdir -p $(DESTDIR)$(PREFIX)/$(APPDIR) |
33 |
cp -f senpai $(DESTDIR)$(PREFIX)/$(BINDIR) |
34 |
- cp -f doc/senpai.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1 |
35 |
- cp -f doc/senpai.5 $(DESTDIR)$(PREFIX)/$(MANDIR)/man5 |
36 |
cp -f contrib/senpai.desktop $(DESTDIR)$(PREFIX)/$(APPDIR)/senpai.desktop |
37 |
uninstall: |
38 |
$(RM) $(DESTDIR)$(PREFIX)/$(BINDIR)/senpai |