Debian Codegraph @

ipl/packs/ibpag2/Makefile

raw
1 .POSIX:
2 ##########################################################################
3 #
4 PROGNAME = ibpag2
5 #
6 ##########################################################################
7 #
8 # User-modifiable section. Read carefully! You will almost
9 # certainly have to change some settings here.
10 #
11
12 #
13 # Destination directory for binaries files. Owner and group for
14 # public executables. Leave the trailing slash off of directory
15 # names.
16 #
17 OWNER = richard # root
18 GROUP = group # root
19 DESTDIR = /usr/local/bin
20 # Put this path into your LPATH variable (on which, see the Icon
21 # documentation). Make sure that the directory exists.
22 LIBDIR = /usr/local/lib/icon/data
23
24 #
25 # Name of your icon compiler and compiler flags.
26 #
27 ICONT = icont
28 IFLAGS = -u -s #-Sc 400 -Sg 400 -Si 2000 -Sn 4000 -SF 40
29
30 SHAR = /usr/local/bin/shar
31 COMPRESS = /usr/bin/compress
32 # COMPRESS = /usr/local/bin/gzip
33
34 ###########################################################################
35 #
36 # Don't change anything below this line unless you're really sure of
37 # what you're doing.
38 #
39
40 AUX = slshupto.icn rewrap.icn outbits.icn sortff.icn itokens.icn
41 SRC = $(PROGNAME).icn $(AUX) slrtbls.icn slritems.icn follow.icn \
42 ibutil.icn iohno.icn ibreader.icn ibwriter.icn shrnktbl.icn \
43 version.icn
44 PARSER = iiparse.lib
45 GLRPARSER = iiglrpar.lib
46 SHARFILES = $(SRC) $(PARSER) $(GLRPARSER) sample.ibp beta2ref.ibp \
47 iacc.ibp Makefile.dist README
48
49 all: $(PROGNAME)
50
51 $(PROGNAME): $(SRC)
52 $(ICONT) $(IFLAGS) -o $(PROGNAME) $(SRC)
53
54
55 ##########################################################################
56 #
57 # Pseudo-target names (shar, install, clean, clobber)
58 #
59
60 #
61 # Assumes you have a shar program like mine.
62 #
63 shar: $(SHARFILES)
64 @echo ""
65 @echo "Removing any old shars in this directory."
66 @echo ""
67 -rm -f $(PROGNAME).[0-9][0-9].Z
68 @echo ""
69 $(SHAR) -fVc -o$(PROGNAME) -L32 $(SHARFILES)
70 $(COMPRESS) -f $(PROGNAME).[0-9][0-9]
71 @echo ""
72 @echo "Shell archive finished."
73 @echo ""
74
75 # Pessimistic assumptions regarding the environment (in particular,
76 # I don't assume you have the BSD "install" shell script).
77 install: all
78 @echo ""
79 -test -d $(DESTDIR) || mkdir $(DESTDIR) && chmod 755 $(DESTDIR)
80 cp $(PROGNAME) $(DESTDIR)/$(PROGNAME)
81 -chgrp $(GROUP) $(DESTDIR)/$(PROGNAME)
82 -chown $(OWNER) $(DESTDIR)/$(PROGNAME)
83 -chmod 755 $(DESTDIR)/$(PROGNAME)
84 -test -d $(LIBDIR) || mkdir $(LIBDIR) && chmod 755 $(LIBDIR)
85 cp $(PARSER) $(LIBDIR)/$(PARSER)
86 cp $(GLRPARSER) $(LIBDIR)/$(GLRPARSER)
87 -chgrp $(GROUP) $(LIBDIR)/$(PARSER)
88 -chown $(OWNER) $(LIBDIR)/$(PARSER)
89 -chgrp $(GROUP) $(LIBDIR)/$(GLRPARSER)
90 -chown $(OWNER) $(LIBDIR)/$(GLRPARSER)
91 -chmod 644 $(LIBDIR)/$(PARSER)
92 -chmod 644 $(LIBDIR)/$(GLRPARSER)
93 @echo ""
94 @echo "Done installing."
95 @echo ""
96
97 # Build executable and copy to ../../iexe.
98 # Nothing done in this case because the executable doesn't stand alone.
99 Iexe:
100
101
102 #
103 # Cleanup
104 #
105 clean:
106 -rm -f *~ #*# core *.u[12] $(PROGNAME).output
107 Clean clobber: clean
108 -rm -f $(PROGNAME)