source: trunk/third/wcl/WcMakeL.tmpl @ 8837

Revision 8837, 2.1 KB checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r8836, which included commits to RCS files with non-trunk default branches.
Line 
1##########################################################################
2# SCCS_data: @(#) WcMakeL.tmpl  1.5 92/12/10 15:06:30
3#
4# Wcl Make Library Template
5#
6# Uses:
7# LIBRARY_NAME LIBRARY_FILE  HEADERS, SRCS, OBJS MAN_PAGES
8
9.c.o:
10        rm -f $@
11        $(CC) -c $(CFLAGS_LIBS) $*.c
12
13all:: $(LIBRARY_FILE)
14
15$(LIBRARY_FILE): $(OBJS)
16        rm -f $(LIBRARY_FILE)
17        $(MKLIB_CMD)
18
19clean::
20        rm -f $(LIBRARY_FILE) $(OBJS)
21
22install:: $(LIBRARY_FILE)
23        $(CP_LIB) $(LIBRARY_FILE) $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE)
24        chown $(OWNER) $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE)
25        chmod $(INSTLIBFLAGS) $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE)
26        $(RANLIB) $(DESTDIR)$(USRLIBDIR)/$(LIBRARY_FILE)
27
28includes::
29        @if [ -d $(WCTOPDIR)/X11 ]; then set +x; \
30        else (set -x; mkdir $(WCTOPDIR)/X11); fi
31        @if [ -d $(WCTOPDIR)/X11/$(LIBRARY_NAME) ]; then set +x; \
32        else (set -x; mkdir $(WCTOPDIR)/X11/$(LIBRARY_NAME)); fi
33        @(set -x; cd $(WCTOPDIR)/X11/$(LIBRARY_NAME); for i in $(HEADERS); do \
34        rm -f $$i; \
35        $(LN) ../../$(LIBRARY_NAME)/$$i .; \
36        done)
37
38install::
39        @if [ -d $(DESTDIR)$(INCDIR) ]; then set +x; \
40        else (set -x; mkdir $(DESTDIR)$(INCDIR) ; \
41        chown $(OWNER) $(DESTDIR)$(INCDIR) ; \
42        chmod $(INSTDIRFLAGS) $(DESTDIR)$(INCDIR)); fi
43        @if [ -d $(DESTDIR)$(INCDIR)/$(LIBRARY_NAME) ]; then set +x; \
44        else (set -x; mkdir $(DESTDIR)$(INCDIR)/$(LIBRARY_NAME) ; \
45        chown $(OWNER) $(DESTDIR)$(INCDIR)/$(LIBRARY_NAME) ; \
46        chmod $(INSTDIRFLAGS) $(DESTDIR)$(INCDIR)/$(LIBRARY_NAME)); fi
47        for i in $(HEADERS); do \
48        rm -f $(DESTDIR)$(INCDIR)/$(LIBRARY_NAME)/$$i; \
49        cp $$i $(DESTDIR)$(INCDIR)/$(LIBRARY_NAME)/$$i; \
50        done
51        chown $(OWNER) $(DESTDIR)$(INCDIR)/$(LIBRARY_NAME)/*
52        chmod $(INSTINCFLAGS) $(DESTDIR)$(INCDIR)/$(LIBRARY_NAME)/*
53
54install.man::
55        @(set -x; for i in $(MAN_PAGES); do \
56        rm -f $(DESTDIR)$(LIBMANDIR)/$$i.$(LIBMANSUFFIX) ; \
57        cp $$i.$(LIBMANSRCSUFFIX) $(DESTDIR)$(LIBMANDIR)/$$i.$(LIBMANSUFFIX) ; \
58        chown $(OWNER) $(DESTDIR)$(LIBMANDIR)/$$i.$(LIBMANSUFFIX) ; \
59        chmod $(INSTMANFLAGS) $(DESTDIR)$(LIBMANDIR)/$$i.$(LIBMANSUFFIX) ; \
60        done )
61
62scoman:
63        @(set -x; for i in $(MAN_PAGES); do \
64        rm -f $$i.S.z ; \
65        nroff -man $$i.man > $$i.S ; \
66        pack -f $$i.S ; \
67        done )
Note: See TracBrowser for help on using the repository browser.