File: Makefile.base

package info (click to toggle)
post-faq 0.10-13
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 172 kB
  • ctags: 26
  • sloc: perl: 313; makefile: 43; sh: 26; awk: 7
file content (62 lines) | stat: -rw-r--r-- 1,586 bytes parent folder | download | duplicates (7)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# See README for instructions on how to configure and install.
# 
# $Id: Makefile.base,v 1.20 1994/02/22 01:21:48 jik Exp $

BINDIR=#bindir#
MANDIR=#mandir#
LIBDIR=#libdir#
EXPORTS=Makefile post_faq.pl post_faq.man
GENFILES=${EXPORTS} config.sed post_faq.shar
SHARS=README Makefile.base config.awk config.dat.in \
	post_faq.man.base post_faq.pl.base faqfile.pl \
	config.sample PATCHLEVEL

all prepare: ${EXPORTS}

Makefile: Makefile.base config.sed
	-rm -f Makefile.bak
	-mv Makefile Makefile.bak
	sed -f config.sed Makefile.base >Makefile
	chmod -w Makefile

post_faq.pl: post_faq.pl.base config.sed
	-rm -f post_faq.pl.bak
	-mv post_faq.pl post_faq.pl.bak
	sed -f config.sed post_faq.pl.base >post_faq.pl
	chmod +x post_faq.pl
	chmod -w post_faq.pl

post_faq.man: post_faq.man.base config.sed
	-rm -f post_faq.man.bak
	-mv post_faq.man post_faq.man.bak
	sed -f config.sed post_faq.man.base >post_faq.man
	chmod -w post_faq.man

config.sed: config.awk config.dat
	-rm -f config.sed.bak
	-mv config.sed config.sed.bak
	awk -f config.awk config.dat >config.sed
	chmod -w config.sed

#If you don't supply your own data file, use the defaults:
config.dat:
	cp config.dat.in config.dat

install: ${EXPORTS} FRC
	install -c -m 0755 post_faq.pl ${DESTDIR}${BINDIR}/post_faq.pl
	install -c -m 0644 post_faq.man ${DESTDIR}${MANDIR}/post_faq.1
	install -c -m 0644 faqfile.pl ${DESTDIR}${LIBDIR}/faqfile.pl

clean:
	rm -f ${GENFILES} *~

post_faq.shar shar: $(SHARS)
	shar $(SHARS) > post_faq.shar

patch: $(SHARS)
	makepatch $(SHARS)
	mv patch post_faq.patch`cat PATCHLEVEL`

FRC:

.PHONY: FRC