File: Makefile

package info (click to toggle)
cron-apt 0.0.6woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 212 kB
  • ctags: 10
  • sloc: sh: 114; makefile: 70
file content (33 lines) | stat: -rw-r--r-- 885 bytes parent folder | download
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
ETCDIR=/etc/cron-apt
ACTIONDIR=$(ETCDIR)/action.d
LOGROTDIR=/etc/logrotate.d
CRONDIR=/etc/cron.d
BINDIR=/usr/sbin
LOGDIR=/var/log/cron-apt
DOCDIR=/usr/share/doc/cron-apt

all:
	docbook-to-man man/cron-apt.sgml > man/cron-apt.1

clean:
	-rm man/cron-apt.1*

install:
	# Log
	mkdir -p $(DESTDIR)$(LOGDIR)
	# Etc examples
	mkdir -p $(DESTDIR)$(DOCDIR)/examples
	cp actions/[0-9]-* -p $(DESTDIR)$(DOCDIR)/examples
	# Etc
	mkdir -p $(DESTDIR)$(ETCDIR)
	cp conf/config* $(DESTDIR)$(ETCDIR)
	mkdir -p $(DESTDIR)$(ACTIONDIR)
	cp $(DESTDIR)$(DOCDIR)/examples/0-update $(DESTDIR)$(ACTIONDIR)
	cp $(DESTDIR)$(DOCDIR)/examples/3-download $(DESTDIR)$(ACTIONDIR)
	mkdir -p $(DESTDIR)$(LOGROTDIR)
	cp src/logrotate $(DESTDIR)$(LOGROTDIR)/cron-apt
	mkdir -p $(DESTDIR)$(CRONDIR)
	cp src/cron.d $(DESTDIR)$(CRONDIR)/cron-apt
	# Bin
	mkdir -p $(DESTDIR)$(BINDIR)
	cp -a src/cron-apt $(DESTDIR)$(BINDIR)