summaryrefslogtreecommitdiff
path: root/Makefile
blob: 96f7fb89aa2b646f999cc4c65c54e788b7390408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
install:
	mkdir -p $(PREFIX)/usr/lib/etckeeper/
	cp -a *.d $(PREFIX)/usr/lib/etckeeper/
	
	install -D etckeeper $(PREFIX)/usr/bin/etckeeper
	for dir in *.d; do \
		command=$$(echo "$$dir" | sed -e 's/\.d$$//'); \
		ln -s etckeeper $(PREFIX)/usr/bin/etckeeper-$$command; \
	done

	for dir in *.d; do \
		mkdir -p $(PREFIX)/etc/etckeeper/$$dir; \
		for file in $$dir/*; do \
			ln -sf /usr/lib/etckeeper/$$file $(PREFIX)/etc/etckeeper/$$file; \
		done; \
	done

	install -m 0644 -D apt.conf $(PREFIX)/etc/apt/apt.conf.d/05etckeeper