/[public]/getopt/trunk/Makefile
ViewVC logotype

Diff of /getopt/trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 259 Revision 324
3DESTDIR= 3DESTDIR=
4prefix=/usr/local 4prefix=/usr/local
5bindir=$(prefix)/bin 5bindir=$(prefix)/bin
6mandir=$(prefix)/man 6mandir=$(prefix)/man
7man1dir=$(mandir)/man1 7man1dir=$(mandir)/man1
8libdir=$(prefix)/lib
9sharedir=$(prefix)/share 8sharedir=$(prefix)/share
10getoptdir=$(libdir)/getopt 9getoptdir=$(sharedir)/getopt
11localedir=$(sharedir)/locale 10localedir=$(sharedir)/locale
12 11
13# Define this to 0 to use the getopt(3) routines in this package. 12# Define this to 0 to use the getopt(3) routines in this package.
14LIBCGETOPT=1 13LIBCGETOPT=1
15 14
16# Define this to 1 if you do not have the gettext routines 15# Define this to 1 if you do not have the gettext routines
17WITHOUT_GETTEXT=0 16WITHOUT_GETTEXT=0
18 17
19 18# For creating the archive
19PACKAGE=getopt
20VERSION=1.1.4
21BASENAME=$(PACKAGE)-$(VERSION)
22UNLIKELYNAME=a8vwjfd92
20 23
21SHELL=/bin/sh 24SHELL=/bin/sh
22 25
23CC=gcc 26CC=gcc
24LD=ld 27LD=ld
27MSGFMT=msgfmt 30MSGFMT=msgfmt
28 31
29LANGUAGES = cs de es fr it ja nl pt_BR 32LANGUAGES = cs de es fr it ja nl pt_BR
30MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES)) 33MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES))
31 34
32CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITH_GETTEXT=$(WITH_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX 35CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITH_GETTEXT=$(WITH_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)\" -Dprogram_version=\"$(VERSION)\"
33ifeq ($(LIBCGETOPT),0) 36ifeq ($(LIBCGETOPT),0)
34CPPFLAGS+=-I./gnu 37CPPFLAGS+=-I./gnu
35endif 38endif
36WARNINGS=-Wall \ 39WARNINGS=-Wall \
37 -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual \ 40 -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual \
91%.o: %.c 94%.o: %.c
92 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c -o $*.o 95 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c -o $*.o
93 96
94%.mo: %.po 97%.mo: %.po
95 $(MSGFMT) -o $@ $< 98 $(MSGFMT) -o $@ $<
99
100# You need GNU tar for this to work!
101.PHONY: package
102package: clean
103 $(RM) -r $(UNLIKELYNAME)
104 mkdir $(UNLIKELYNAME)
105 ln -s .. $(UNLIKELYNAME)/$(BASENAME)
106 cd $(UNLIKELYNAME) && tar cfvzp ../$(BASENAME).tar.gz --exclude='CVS' --exclude='*.tar.gz' --exclude=$(UNLIKELYNAME) $(BASENAME)/*
107 $(RM) -r $(UNLIKELYNAME)

Legend:
Removed from v.259  
changed lines
  Added in v.324

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26