File: Makefile

package info (click to toggle)
cron-apt 0.8.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 288 kB
  • ctags: 11
  • sloc: sh: 282; makefile: 120
file content (26 lines) | stat: -rw-r--r-- 837 bytes parent folder | download | duplicates (10)
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
ETCDIR=/etc/cron-apt
ACTIONDIR=$(ETCDIR)/action.d
DOCDIR=/usr/share/doc/cron-apt

all:

clean:

install: install-examples config 0-update 3-download
	mkdir -p $(DESTDIR)$(ETCDIR)
	mkdir -p $(DESTDIR)$(ACTIONDIR)
	mkdir -p $(DESTDIR)$(ETCDIR)/config.d
	mkdir -p $(DESTDIR)$(ETCDIR)/mailmsg.d
	mkdir -p $(DESTDIR)$(ETCDIR)/syslogmsg.d
	mkdir -p $(DESTDIR)$(ETCDIR)/mailonmsgs
	mkdir -p $(DESTDIR)$(ETCDIR)/syslogonmsgs
	mkdir -p $(DESTDIR)$(ETCDIR)/errormsg.d
	mkdir -p $(DESTDIR)$(ETCDIR)/logmsg.d
	install -m644 config $(DESTDIR)$(ETCDIR)
	install -m644 0-update $(DESTDIR)$(ACTIONDIR)/
	install -m644 3-download $(DESTDIR)$(ACTIONDIR)/

install-examples: config 0-update 3-download 9-notify
	mkdir -p $(DESTDIR)$(DOCDIR)/examples
	install -m644 [0-9]-* -p $(DESTDIR)$(DOCDIR)/examples
	install -m644 config $(DESTDIR)$(DOCDIR)/examples