File: Makefile

package info (click to toggle)
sqcwa 0.3-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 120 kB
  • ctags: 54
  • sloc: ansic: 806; sh: 72; makefile: 63
file content (24 lines) | stat: -rw-r--r-- 612 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CFLAGS=-Wall -O2

all: sqcwa

distclean: clean
	rm -fv *~

clean:
	rm -fv *.o sqcwa

sqcwa: url.o sqclient.o htmlchk.o sqcwa.o watchlog.o daemon.o

install: sqcwa
	mkdir -p $(DESTDIR)/usr/sbin/
	install -m 0755 sqcwa $(DESTDIR)/usr/sbin/sqcwa
	mkdir -p $(DESTDIR)/etc/init.d/
	install -m 0755 sqcwa.init.d $(DESTDIR)/etc/init.d/sqcwa

uninstall:
	rm -fv $(DESTDIR)/usr/sbin/sqcwa $(DESTDIR)/etc/init.d/sqcwa
	# squid in Debian starts at sequence 30. lets start sqcwa
	# before squid is running (sequence 31) and stop it before
	# squid dies (sequence 29).
	# update-rc.d sqcwa start 31 2 3 4 5 . stop 29 0 1 6 .