-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile.in
59 lines (44 loc) · 1.46 KB
/
Makefile.in
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
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
POD2TEXT = @POD2TEXT@
POD2MAN = @POD2MAN@
VERSION = @PACKAGE_VERSION@
DATE = @DATE@
MAIN = main.pl
CLASSES = $(sort $(wildcard [A-Z]*.pl))
PODS = SFDCompile.pod
EXECUTABLE = sfdc
MAN = sfdc.1
TXT = sfdc.txt
all: $(EXECUTABLE) $(MAN) $(TXT)
clean:
$(RM) $(EXECUTABLE) $(MAN) $(TXT) config.log \
$(EXECUTABLE)-$(VERSION).tar.gz $(EXECUTABLE).lha
distclean: clean
$(RM) config.status Makefile
install: all
$(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
$(INSTALL_PROGRAM) $(EXECUTABLE) $(DESTDIR)$(bindir)
$(INSTALL_DATA) $(MAN) $(DESTDIR)$(mandir)/man1
tgz: all gg-sfdc.spec
[ -z "`svk diff`" ] || (echo "Not checked in!"; exit 10)
svk co --export //local/arp2/gg/sfdc/trunk /tmp/$(EXECUTABLE)-$(VERSION)
(cd /tmp && tar cfvz $(EXECUTABLE)-$(VERSION).tar.gz $(EXECUTABLE)-$(VERSION))
cp /tmp/$(EXECUTABLE)-$(VERSION).tar.gz .
$(RM) -r /tmp/$(EXECUTABLE)-$(VERSION) /tmp/$(EXECUTABLE)-$(VERSION).tar.gz
lha: all tgz
$(RM) $(EXECUTABLE).lha
lha -ao5 $(EXECUTABLE).lha $(EXECUTABLE) $(EXECUTABLE).readme \
$(MAN) $(TXT) $(EXECUTABLE)-$(VERSION).tar.gz
$(EXECUTABLE): $(MAIN) $(CLASSES) $(PODS)
sed "s/SFDC_VERSION/$(VERSION)/g" $^ | sed "s/SFDC_DATE/$(DATE)/g" >$@
chmod +x $@
$(MAN): $(EXECUTABLE)
$(POD2MAN) $^ -o $@
$(TXT): $(EXECUTABLE)
$(POD2TEXT) -c $^ -o $@