File: Makefile

package info (click to toggle)
gnarwl 3.6.dfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 856 kB
  • ctags: 288
  • sloc: ansic: 1,163; makefile: 119; sh: 70; php: 44
file content (24 lines) | stat: -rw-r--r-- 905 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
catch:
	$(MAKE) -C .. all

all: clean spec config

clean: 
	rm -f $(BIN)-$(VER).spec gnarwl.cfg

config:
	@sed "s\\_HOMEDIR_\\$(HOMEDIR)\\g ; s\\_VER_\\$(VER)\\g ; s\\_MAN_SEC_\\$(MAN_SEC)\\g" < config.tmpl > gnarwl.cfg

spec:
	@sed "s\\_BIN_\\$(BIN)\\g ; s\\_VER_\\$(VER)\\g; s\\_SBIN_\\$(SBIN)\\g; s\\_SEC_\\$(MAN_SEC)\\g" < spec.tmpl > $(BIN)-$(VER).spec 

install:
	mkdir -m 755 -p  $(DESTDIR)$(HOMEDIR)/block $(DESTDIR)$(HOMEDIR)/bin $(DESTDIR)$(CONFDIR)
	echo \|$(BINDIR)/$(BIN) > $(DESTDIR)$(HOMEDIR)/.forward
	install -m 644 header.txt $(DESTDIR)$(HOMEDIR)
	install -m 644 footer.txt $(DESTDIR)$(HOMEDIR)
	mkdir -p $(DESTDIR)/usr/share/gnarwl
	install -m 600 gnarwl.cfg $(DESTDIR)/usr/share/gnarwl/gnarwl.cfg.template
	cat badheaders.txt | $(DESTDIR)$(SBINDIR)/$(SBIN) -na $(DESTDIR)$(HOMEDIR)/badheaders.db
	cat blacklist.txt | $(DESTDIR)$(SBINDIR)/$(SBIN) -na $(DESTDIR)$(HOMEDIR)/blacklist.db