Commit | Line | Data |
---|---|---|
62402cb1 MP |
1 | # Makefile for popt library. |
2 | ||
3 | AUTOMAKE_OPTIONS = 1.3 foreign | |
4 | ||
5 | SUBDIRS = po | |
6 | ||
7 | LDFLAGS = -L$(top_builddir) | |
8 | INCLUDES = -I$(top_srcdir) | |
9 | ||
10 | noinst_PROGRAMS = test1 | |
11 | test1_SOURCES = test1.c | |
12 | test1_LDADD = -lpopt | |
13 | ||
14 | include_HEADERS = popt.h | |
15 | lib_LIBRARIES = libpopt.a | |
16 | libpopt_a_SOURCES = popt.c findme.c poptparse.c poptconfig.c popthelp.c | |
17 | ||
18 | CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION)) | |
19 | ||
20 | .PHONY: archive | |
21 | archive: | |
22 | @echo "This is $(PACKAGE)-$(VERSION)." | |
23 | @sleep 5 | |
24 | @cvs -Q tag -F $(CVSTAG) . | |
25 | @rm -rf /tmp/$(PACKAGE)-$(VERSION) /tmp/$(PACKAGE) | |
26 | @cd /tmp; cvs -Q -d $(CVSROOT) export -r$(CVSTAG) $(PACKAGE) || : | |
27 | @mv /tmp/$(PACKAGE) /tmp/$(PACKAGE)-$(VERSION) | |
28 | @cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh ; make depend; make distclean | |
29 | @cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh --noconfigure | |
30 | @cd /tmp; tar czSpf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) | |
31 | @rm -rf /tmp/$(PACKAGE)-$(VERSION) | |
32 | @cp /tmp/$(PACKAGE)-$(VERSION).tar.gz . | |
33 | @rm -f /tmp/$(PACKAGE)-$(VERSION).tar.gz | |
34 | @echo " " | |
35 | @echo "The final archive is ./$(PACKAGE)-$(VERSION).tar.gz." |