~dricottone/my-utils

ref: 573855ab6e5eeaee1e0c935bb6fcf78bf02e13f1 my-utils/archives/Makefile -rw-r--r-- 1.0 KiB
573855abDominic Ricottone Rewrote test suite for bats 2 years 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/