1998-10-08 18:40:27 +08:00
|
|
|
# Makefile for popt library.
|
|
|
|
|
1999-01-20 07:54:30 +08:00
|
|
|
AUTOMAKE_OPTIONS = 1.4 foreign
|
1998-10-08 18:40:27 +08:00
|
|
|
|
2000-01-20 04:54:53 +08:00
|
|
|
EXTRA_DIST = autogen.sh CHANGES $(man_MANS) popt.spec \
|
2000-02-11 12:44:14 +08:00
|
|
|
testit.sh test-poptrc \
|
2000-04-26 04:14:21 +08:00
|
|
|
po/*.in po/*.po po/popt.pot \
|
2000-02-11 12:44:14 +08:00
|
|
|
popt.ps
|
1999-01-22 02:42:53 +08:00
|
|
|
|
1999-09-30 05:12:45 +08:00
|
|
|
SUBDIRS = intl po
|
1998-10-23 02:56:55 +08:00
|
|
|
|
1998-10-11 23:19:55 +08:00
|
|
|
INCLUDES = -I$(top_srcdir)
|
1998-10-08 18:40:27 +08:00
|
|
|
|
1999-10-26 02:22:19 +08:00
|
|
|
noinst_HEADERS = findme.h poptint.h system.h
|
1999-01-22 02:42:53 +08:00
|
|
|
|
1999-10-23 02:10:51 +08:00
|
|
|
noinst_PROGRAMS = test1 test2
|
1998-10-23 03:11:53 +08:00
|
|
|
test1_SOURCES = test1.c
|
1999-10-26 02:22:19 +08:00
|
|
|
test1_LDFLAGS = -all-static
|
1999-01-23 06:20:44 +08:00
|
|
|
test1_LDADD = $(lib_LTLIBRARIES)
|
1999-10-23 02:10:51 +08:00
|
|
|
test2_SOURCES = test2.c
|
1999-10-26 02:22:19 +08:00
|
|
|
test2_LDFLAGS = -all-static
|
1999-10-23 02:10:51 +08:00
|
|
|
test2_LDADD = $(lib_LTLIBRARIES)
|
1998-10-23 03:11:53 +08:00
|
|
|
|
1999-10-22 05:38:18 +08:00
|
|
|
noinst_SCRIPTS = testit.sh
|
|
|
|
|
|
|
|
TESTS_ENVIRONMENT = \
|
1999-10-26 02:22:19 +08:00
|
|
|
test1="./test1"
|
1999-10-22 05:38:18 +08:00
|
|
|
|
|
|
|
TESTS = testit.sh
|
|
|
|
|
1998-10-27 05:53:26 +08:00
|
|
|
include_HEADERS = popt.h
|
1999-01-23 01:22:17 +08:00
|
|
|
lib_LTLIBRARIES = libpopt.la
|
|
|
|
libpopt_la_SOURCES = popt.c findme.c poptparse.c poptconfig.c popthelp.c
|
1999-10-22 02:20:12 +08:00
|
|
|
|
1998-11-20 04:56:15 +08:00
|
|
|
man_MANS = popt.3
|
1998-10-23 03:39:12 +08:00
|
|
|
|
2001-05-04 05:00:18 +08:00
|
|
|
.PHONY: sources
|
|
|
|
sources:
|
|
|
|
@echo $(libpopt_la_SOURCES:%=popt/%)
|
|
|
|
|
1999-10-22 02:20:12 +08:00
|
|
|
.PHONY: lclint
|
|
|
|
lclint:
|
|
|
|
lclint ${DEFS} ${INCLUDES} ${libpopt_la_SOURCES}
|
|
|
|
|
1998-10-23 03:39:12 +08:00
|
|
|
CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION))
|
|
|
|
|
|
|
|
.PHONY: archive
|
|
|
|
archive:
|
|
|
|
@echo "This is $(PACKAGE)-$(VERSION)."
|
|
|
|
@sleep 5
|
|
|
|
@cvs -Q tag -F $(CVSTAG) .
|
1998-10-23 03:41:24 +08:00
|
|
|
@rm -rf /tmp/$(PACKAGE)-$(VERSION) /tmp/$(PACKAGE)
|
|
|
|
@cd /tmp; cvs -Q -d $(CVSROOT) export -r$(CVSTAG) $(PACKAGE) || :
|
|
|
|
@mv /tmp/$(PACKAGE) /tmp/$(PACKAGE)-$(VERSION)
|
|
|
|
@cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh ; make depend; make distclean
|
|
|
|
@cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh --noconfigure
|
|
|
|
@cd /tmp; tar czSpf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
|
|
|
|
@rm -rf /tmp/$(PACKAGE)-$(VERSION)
|
|
|
|
@cp /tmp/$(PACKAGE)-$(VERSION).tar.gz .
|
|
|
|
@rm -f /tmp/$(PACKAGE)-$(VERSION).tar.gz
|
1998-10-23 03:39:12 +08:00
|
|
|
@echo " "
|
|
|
|
@echo "The final archive is ./$(PACKAGE)-$(VERSION).tar.gz."
|
2000-01-20 04:54:53 +08:00
|
|
|
|
|
|
|
.PHONY: doxygen
|
|
|
|
doxygen: Doxyfile
|
|
|
|
rm -rf doxygen
|
|
|
|
mkdir -p doxygen
|
|
|
|
doxygen
|