… | |
… | |
15 | # 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 |
16 | WITHOUT_GETTEXT=0 |
16 | WITHOUT_GETTEXT=0 |
17 | |
17 | |
18 | # For creating the archive |
18 | # For creating the archive |
19 | PACKAGE=getopt |
19 | PACKAGE=getopt |
20 | VERSION=1.1.5 |
20 | VERSION=1.1.6 |
21 | BASENAME=$(PACKAGE)-$(VERSION) |
21 | BASENAME=$(PACKAGE)-$(VERSION) |
22 | UNLIKELYNAME=a8vwjfd92 |
22 | UNLIKELYNAME=a8vwjfd92 |
23 | |
23 | |
24 | SHELL=/bin/sh |
24 | SHELL=/bin/sh |
25 | |
25 | |
… | |
… | |
27 | LD=ld |
27 | LD=ld |
28 | RM=rm -f |
28 | RM=rm -f |
29 | INSTALL=install |
29 | INSTALL=install |
30 | MSGFMT=msgfmt |
30 | MSGFMT=msgfmt |
31 | |
31 | |
32 | LANGUAGES = ca cs da de es et eu fi fr gl hu id it ja nl pl pt_BR ru sl sv tr uk vi zh_CN zh_TW |
32 | LANGUAGES = ca cs da de es et eu fi fr gl hr hu id it ja nl pl pt_BR ru sl sv tr uk vi zh_CN zh_TW |
33 | MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES)) |
33 | MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES)) |
34 | |
34 | |
35 | CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)\" -Dprogram_version=\"$(VERSION)\" |
35 | CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)\" -Dprogram_version=\"$(VERSION)\" |
36 | ifeq ($(LIBCGETOPT),0) |
36 | ifeq ($(LIBCGETOPT),0) |
37 | CPPFLAGS+=-I./gnu |
37 | CPPFLAGS+=-I./gnu |
… | |
… | |
103 | $(RM) -r $(UNLIKELYNAME) |
103 | $(RM) -r $(UNLIKELYNAME) |
104 | mkdir $(UNLIKELYNAME) |
104 | mkdir $(UNLIKELYNAME) |
105 | ln -s .. $(UNLIKELYNAME)/$(BASENAME) |
105 | ln -s .. $(UNLIKELYNAME)/$(BASENAME) |
106 | cd $(UNLIKELYNAME) && tar cfvzp ../$(BASENAME).tar.gz --exclude='CVS' --exclude='*.tar.gz' --exclude=$(UNLIKELYNAME) $(BASENAME)/* |
106 | cd $(UNLIKELYNAME) && tar cfvzp ../$(BASENAME).tar.gz --exclude='CVS' --exclude='*.tar.gz' --exclude=$(UNLIKELYNAME) $(BASENAME)/* |
107 | $(RM) -r $(UNLIKELYNAME) |
107 | $(RM) -r $(UNLIKELYNAME) |
|
|
108 | |
|
|
109 | .PHONY: test |
|
|
110 | test: all |
|
|
111 | ./run-tests |