41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# Makefile for popt library.
|
|
|
|
AUTOMAKE_OPTIONS = 1.4 foreign
|
|
|
|
EXTRA_DIST = CHANGES autogen.sh findme.h $(man_MANS) popt.spec poptint.h \
|
|
testit.sh po/*.in po/*.po po/popt.pot popt.ps
|
|
|
|
SUBDIRS = po
|
|
|
|
INCLUDES = -I$(top_srcdir)
|
|
|
|
noinst_INCLUDES = findme.h poptint.h
|
|
|
|
noinst_PROGRAMS = test1
|
|
test1_SOURCES = test1.c
|
|
test1_LDADD = $(lib_LTLIBRARIES)
|
|
|
|
include_HEADERS = popt.h
|
|
lib_LTLIBRARIES = libpopt.la
|
|
libpopt_la_SOURCES = popt.c findme.c poptparse.c poptconfig.c popthelp.c
|
|
man_MANS = popt.3
|
|
|
|
CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION))
|
|
|
|
.PHONY: archive
|
|
archive:
|
|
@echo "This is $(PACKAGE)-$(VERSION)."
|
|
@sleep 5
|
|
@cvs -Q tag -F $(CVSTAG) .
|
|
@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
|
|
@echo " "
|
|
@echo "The final archive is ./$(PACKAGE)-$(VERSION).tar.gz."
|