1 | # Makefile for popt library. |
---|
2 | |
---|
3 | AUTOMAKE_OPTIONS = 1.4 foreign |
---|
4 | |
---|
5 | EXTRA_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 | |
---|
10 | SUBDIRS = intl po |
---|
11 | |
---|
12 | INCLUDES = -I$(top_srcdir) |
---|
13 | |
---|
14 | noinst_HEADERS = findme.h poptint.h system.h |
---|
15 | |
---|
16 | noinst_PROGRAMS = test1 test2 |
---|
17 | test1_SOURCES = test1.c |
---|
18 | test1_LDFLAGS = -all-static |
---|
19 | test1_LDADD = $(lib_LTLIBRARIES) |
---|
20 | test2_SOURCES = test2.c |
---|
21 | test2_LDFLAGS = -all-static |
---|
22 | test2_LDADD = $(lib_LTLIBRARIES) |
---|
23 | |
---|
24 | noinst_SCRIPTS = testit.sh |
---|
25 | |
---|
26 | TESTS_ENVIRONMENT = \ |
---|
27 | test1="./test1" |
---|
28 | |
---|
29 | TESTS = testit.sh |
---|
30 | |
---|
31 | include_HEADERS = popt.h |
---|
32 | lib_LTLIBRARIES = libpopt.la |
---|
33 | libpopt_la_SOURCES = popt.c findme.c poptparse.c poptconfig.c popthelp.c |
---|
34 | |
---|
35 | man_MANS = popt.3 |
---|
36 | |
---|
37 | .PHONY: lclint |
---|
38 | lclint: |
---|
39 | lclint ${DEFS} ${INCLUDES} ${libpopt_la_SOURCES} |
---|
40 | |
---|
41 | CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION)) |
---|
42 | |
---|
43 | .PHONY: archive |
---|
44 | archive: |
---|
45 | @echo "This is $(PACKAGE)-$(VERSION)." |
---|
46 | @sleep 5 |
---|
47 | @cvs -Q tag -F $(CVSTAG) . |
---|
48 | @rm -rf /tmp/$(PACKAGE)-$(VERSION) /tmp/$(PACKAGE) |
---|
49 | @cd /tmp; cvs -Q -d $(CVSROOT) export -r$(CVSTAG) $(PACKAGE) || : |
---|
50 | @mv /tmp/$(PACKAGE) /tmp/$(PACKAGE)-$(VERSION) |
---|
51 | @cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh ; make depend; make distclean |
---|
52 | @cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh --noconfigure |
---|
53 | @cd /tmp; tar czSpf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) |
---|
54 | @rm -rf /tmp/$(PACKAGE)-$(VERSION) |
---|
55 | @cp /tmp/$(PACKAGE)-$(VERSION).tar.gz . |
---|
56 | @rm -f /tmp/$(PACKAGE)-$(VERSION).tar.gz |
---|
57 | @echo " " |
---|
58 | @echo "The final archive is ./$(PACKAGE)-$(VERSION).tar.gz." |
---|
59 | |
---|
60 | .PHONY: doxygen |
---|
61 | doxygen: Doxyfile |
---|
62 | rm -rf doxygen |
---|
63 | mkdir -p doxygen |
---|
64 | doxygen |
---|