aboutsummaryrefslogtreecommitdiff
path: root/src/scripts/Makefile.am
blob: 965f65ff1482e4fba5d1a7244a547a8f8978afe7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
##
## Author: Lasse Collin
##
## This file has been put into the public domain.
## You can do whatever you want with this file.
##

dist_bin_SCRIPTS = xzdiff xzgrep xzmore
dist_man_MANS = xzdiff.1 xzgrep.1 xzmore.1

install-exec-hook:
	cd $(DESTDIR)$(bindir) && \
	rm -f xzcmp xzegrep xzfgrep xzless lzcmp lzegrep lzfgrep lzless && \
	$(LN_S) xzdiff xzcmp && \
	$(LN_S) xzgrep xzegrep && \
	$(LN_S) xzgrep xzfgrep && \
	$(LN_S) xzmore xzless && \
	$(LN_S) xzdiff lzcmp && \
	$(LN_S) xzgrep lzegrep && \
	$(LN_S) xzgrep lzfgrep && \
	$(LN_S) xzmore lzless

install-data-hook:
	cd $(DESTDIR)$(mandir)/man1 && \
	rm -f xzcmp.1 xzegrep.1 xzfgrep.1 xzless.1 \
		lzcmp.1 lzegrep.1 lzfgrep.1 lzless.1 && \
	$(LN_S) xzdiff.1 xzcmp.1 && \
	$(LN_S) xzgrep.1 xzegrep.1 && \
	$(LN_S) xzgrep.1 xzfgrep.1 && \
	$(LN_S) xzmore.1 xzless.1 && \
	$(LN_S) xzdiff.1 lzcmp.1 && \
	$(LN_S) xzgrep.1 lzegrep.1 && \
	$(LN_S) xzgrep.1 lzfgrep.1 && \
	$(LN_S) xzmore.1 lzless.1

uninstall-hook:
	cd $(DESTDIR)$(bindir) && \
	rm -f xzcmp xzegrep xzfgrep xzless lzcmp lzegrep lzfgrep lzless
	cd $(DESTDIR)$(mandir)/man1 && \
	rm -f xzcmp.1 xzegrep.1 xzfgrep.1 xzless.1 \
		lzcmp.1 lzegrep.1 lzfgrep.1 lzless.1