source: trunk/third/popt/Makefile.am @ 18180

Revision 18180, 1.9 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18179, which included commits to RCS files with non-trunk default branches.
Line 
1# Makefile for popt library.
2
3AUTOMAKE_OPTIONS = 1.4 foreign
4
5EXTRA_DIST = autogen.sh CHANGES $(man_MANS) popt.spec \
6        testit.sh test-poptrc \
7        po/*.in po/*.po po/popt.pot \
8        popt.ps
9
10SUBDIRS = intl po
11
12INCLUDES = -I. -I$(top_srcdir)
13
14noinst_HEADERS = findme.h poptint.h system.h
15
16noinst_PROGRAMS = test1 test2 test3
17test1_SOURCES = test1.c
18test1_LDFLAGS = -all-static
19test1_LDADD = $(lib_LTLIBRARIES)
20test2_SOURCES = test2.c
21test2_LDFLAGS = -all-static
22test2_LDADD = $(lib_LTLIBRARIES)
23test3_SOURCES = test3.c
24test3_LDFLAGS = -all-static
25test3_LDADD = $(lib_LTLIBRARIES)
26
27noinst_SCRIPTS = testit.sh
28
29TESTS_ENVIRONMENT = \
30test1="./test1"
31
32TESTS = testit.sh
33
34include_HEADERS = popt.h
35lib_LTLIBRARIES = libpopt.la
36libpopt_la_SOURCES = popt.c findme.c poptparse.c poptconfig.c popthelp.c
37
38man_MANS = popt.3
39
40#BUILT_SOURCES = popt.lcd
41
42popt.lcd: Makefile.am ${libpopt_la_SOURCES} ${include_HEADERS} ${noinst_HEADERS}
43        lclint -dump $@ ${libpopt_la_SOURCES}
44
45.PHONY: sources
46sources:
47        @echo $(libpopt_la_SOURCES:%=popt/%)
48
49.PHONY: lclint
50lclint:
51        lclint ${DEFS} ${INCLUDES} test1.c ${libpopt_la_SOURCES}
52
53CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION))
54
55.PHONY: archive
56archive:
57        @echo "This is $(PACKAGE)-$(VERSION)."
58        @sleep 5
59        @cvs -Q tag -F $(CVSTAG) .
60        @rm -rf /tmp/$(PACKAGE)-$(VERSION) /tmp/$(PACKAGE)
61        @cd /tmp; cvs -Q -d $(CVSROOT) export -r$(CVSTAG) $(PACKAGE) || :
62        @mv /tmp/$(PACKAGE) /tmp/$(PACKAGE)-$(VERSION)
63        @cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh ; make depend; make distclean
64        @cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh --noconfigure
65        @cd /tmp; tar czSpf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
66        @rm -rf /tmp/$(PACKAGE)-$(VERSION)
67        @cp /tmp/$(PACKAGE)-$(VERSION).tar.gz .
68        @rm -f /tmp/$(PACKAGE)-$(VERSION).tar.gz
69        @echo " "
70        @echo "The final archive is ./$(PACKAGE)-$(VERSION).tar.gz."
71
72.PHONY: doxygen
73doxygen: Doxyfile
74        rm -rf doxygen
75        mkdir -p doxygen
76        doxygen
Note: See TracBrowser for help on using the repository browser.