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. -I$(top_srcdir) |
---|
13 | |
---|
14 | noinst_HEADERS = findme.h poptint.h system.h |
---|
15 | |
---|
16 | #noinst_PROGRAMS = test1 test2 test3 |
---|
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 | #test3_SOURCES = test3.c |
---|
24 | #test3_LDFLAGS = -all-static |
---|
25 | #test3_LDADD = $(lib_LTLIBRARIES) |
---|
26 | |
---|
27 | noinst_SCRIPTS = testit.sh |
---|
28 | |
---|
29 | TESTS_ENVIRONMENT = \ |
---|
30 | test1="./test1" |
---|
31 | |
---|
32 | TESTS = testit.sh |
---|
33 | |
---|
34 | include_HEADERS = popt.h |
---|
35 | lib_LTLIBRARIES = libpopt.la |
---|
36 | libpopt_la_SOURCES = popt.c findme.c poptparse.c poptconfig.c popthelp.c |
---|
37 | |
---|
38 | man_MANS = popt.3 |
---|
39 | |
---|
40 | #BUILT_SOURCES = popt.lcd |
---|
41 | |
---|
42 | popt.lcd: Makefile.am ${libpopt_la_SOURCES} ${include_HEADERS} ${noinst_HEADERS} |
---|
43 | lclint -dump $@ ${libpopt_la_SOURCES} |
---|
44 | |
---|
45 | .PHONY: sources |
---|
46 | sources: |
---|
47 | @echo $(libpopt_la_SOURCES:%=popt/%) |
---|
48 | |
---|
49 | .PHONY: lclint |
---|
50 | lclint: |
---|
51 | lclint ${DEFS} ${INCLUDES} test1.c ${libpopt_la_SOURCES} |
---|
52 | |
---|
53 | CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION)) |
---|
54 | |
---|
55 | .PHONY: archive |
---|
56 | archive: |
---|
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 |
---|
73 | doxygen: Doxyfile |
---|
74 | rm -rf doxygen |
---|
75 | mkdir -p doxygen |
---|
76 | doxygen |
---|