File: Makefile

package info (click to toggle)
gnarwl 3.6.dfsg-6
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 524 kB
  • ctags: 133
  • sloc: ansic: 1,125; makefile: 156; sh: 66; php: 44
file content (29 lines) | stat: -rw-r--r-- 1,033 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
25
26
27
28
29
catch:
	$(MAKE) -C .. all

all: clean manpage

clean: 
	rm -f *~ $(BIN).$(MAN_SEC)* $(SBIN).$(MAN_SEC)* DEADJOE

manpage:
	@echo Generating manpage...
	@sed "s\\_CONFDIR_\\$(CONFDIR)\\g ; s\\_HOMEDIR_\\$(HOMEDIR)\\g ; s\\_MANSEC_\\$(MAN_SEC)\\g" < $(BIN).man | groff -man -Tascii > $(BIN).$(MAN_SEC)
	@sed "s\\_CONFDIR_\\$(CONFDIR)\\g ; s\\_HOMEDIR_\\$(HOMEDIR)\\g ; s\\_MANSEC_\\$(MAN_SEC)\\g" < $(SBIN).man | groff -man -Tascii > $(SBIN).$(MAN_SEC)


install:
	mkdir -m 755 -p $(DOCDIR) $(MANDIR)/man$(MAN_SEC)
	install -m 644 $(BIN).$(MAN_SEC) $(MANDIR)/man$(MAN_SEC)
	install -m 644 $(SBIN).$(MAN_SEC) $(MANDIR)/man$(MAN_SEC)
	install -m 644 FAQ $(DOCDIR)
	install -m 644 LICENSE $(DOCDIR)
	install -m 644 AUTHORS $(DOCDIR)
	install -m 644 INSTALL $(DOCDIR)
	install -m 644 example.ldif $(DOCDIR)
	install -m 644 HISTORY $(DOCDIR)
	install -m 644 README $(DOCDIR)
	gzip -f -9 $(DOCDIR)/FAQ
	gzip -f -9 $(DOCDIR)/HISTORY
	gzip -f -9 $(MANDIR)/man$(MAN_SEC)/$(BIN).$(MAN_SEC)
	gzip -f -9 $(MANDIR)/man$(MAN_SEC)/$(SBIN).$(MAN_SEC)