~dricottone/my-utils

ref: b26e1a336ce318b7258b95dd238eb7d0801088e8 my-utils/archives/Makefile -rw-r--r-- 1.0 KiB
b26e1a33Dominic Ricottone git-sparse 1 year, 3 months ago
                                                                                
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
42
43
BIN_DIR?=/usr/local/bin
LIB_DIR?=/usr/local/lib
COMP_DIR?=/usr/local/etc/bash_completion.d

.PHONY: install uninstall test clean

install:
	install -m755 epub $(BIN_DIR)/epub
	install -m755 mktar $(BIN_DIR)/mktar
	install -m755 mktar-batch $(BIN_DIR)/mktar-batch
	install -m755 rmtar $(BIN_DIR)/rmtar
	install -m755 rmzip $(BIN_DIR)/rmzip
	install -m755 tarcat $(BIN_DIR)/tarcat
	install -m755 tarls $(BIN_DIR)/tarls
	install -m755 untar $(BIN_DIR)/untar
	install -m755 zipls $(BIN_DIR)/zipls

	install -m755 archive.bash $(LIB_DIR)/archive.bash
	install -m755 unarchive.bash $(LIB_DIR)/unarchive.bash

	install -m755 completion.bash $(COMP_DIR)/myutils_archives.bash

uninstall:
	rm $(BIN_DIR)/epub
	rm $(BIN_DIR)/mktar
	rm $(BIN_DIR)/mktar-batch
	rm $(BIN_DIR)/rmtar
	rm $(BIN_DIR)/rmzip
	rm $(BIN_DIR)/tarcat
	rm $(BIN_DIR)/tarls
	rm $(BIN_DIR)/untar
	rm $(BIN_DIR)/zipls

	rm $(LIB_DIR)/archive.bash
	rm $(LIB_DIR)/unarchive.bash

	rm $(COMP_DIR)/myutils_archives.bash

test: clean
	bats test/

	rm -rf test/static/ test/output/