1 # 2 # CDDL HEADER START 3 # 4 # The contents of this file are subject to the terms of the 5 # Common Development and Distribution License (the License). 6 # You may not use this file except in compliance with the License. 7 # 8 # You can obtain a copy of the license at usr/src/CDDL.txt 9 # or http://www.opensolaris.org/os/licensing. 10 # See the License for the specific language governing permissions 11 # and limitations under the License. 12 # 13 # When distributing Covered Code, include this CDDL HEADER in each 14 # file and include the License file at usr/src/CDDL.txt. 15 # If applicable, add the following below this CDDL HEADER, with the 16 # fields enclosed by brackets [] replaced with your own identifying 17 # information: Portions Copyright [yyyy] [name of copyright owner] 18 # 19 # CDDL HEADER END 20 # 21 22 # 23 # Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24 # Use is subject to license terms. 25 # 26 # ident "@(#)Makefile 1.17 07/11/18 SMI" 27 # 28 # cli/Makefile 29 # 30 # include global definitions 31 include $(SRC)/Makefile.master 32 include $(SRC)/cmd/Makefile.cmd 33 34 BIN2DELIVER=\ 35 geoadm \ 36 geohb \ 37 geops \ 38 geopg 39 40 LIB2DELIVER =\ 41 geocacaoadm \ 42 geopgi 43 44 BINDIR=$(VROOT)/usr/cluster/bin 45 46 LIBDIR=$(VROOT)/usr/cluster/lib/geo/lib 47 48 BINFILES = $(BIN2DELIVER:%=$(BINDIR)/%) 49 50 LIBFILES = $(LIB2DELIVER:%=$(LIBDIR)/%) 51 52 DELIVERABLES=\ 53 $(BINFILES) $(LIBFILES) 54 55 PFILES = $(DELIVERABLES:%=%.pl) 56 57 # The product default MSGDOMAIN is used for the 58 # installation location of the .po message catalog file 59 POFILE = scgeo.cli.cmd.po 60 61 all install: $(DELIVERABLES) 62 63 _msg: $(MSGDOMAIN)/$(POFILE) 64 65 clean clobber: FRC 66 $(RM) $(BIN2DELIVER) $(LIB2DELIVER) *.po *.pi 2>/dev/null 67 68 lint check: 69 70 FRC: 71 72 $(BINDIR)/%: % $(BINDIR) 73 $(INS.file) 74 75 $(BINDIR): 76 $(INS.dir) 77 78 $(LIBDIR)/%: % $(LIBDIR) 79 $(INS.file) 80 81 $(LIBDIR): 82 $(INS.dir) 83 84 # PERL binary rule. 85 %: %.pl 86 $(RM) $@ 87 cp $< $@ 88 chmod +x $@ 89 90 $(MSGDOMAIN)/$(POFILE) : $(POFILE) $(MSGDOMAIN) 91 $(CP) $(POFILE) $(MSGDOMAIN) 92 93 $(POFILE): $(PFILES) 94 $(XGETTEXT) $(XGETFLAGS) -d $(@:%.po=%) $(PFILES) /dev/null; \ 95 96 $(MSGDOMAIN): 97 $(INS.dir) 98