1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
# Makefile for fortunes-de
# Copyright (C) Andreas Tille (tille@debian.org)
PACKAGE=fortunes-de
VERSION=0.37
DISTFILES = README LIESMICH AUTHORS COPYING ChangeLog INSTALL \
Makefile install.sh GPL-Deutsch NEWS
SUBDIRS = data data-more bin man predata builduti rezepte
FILES_TO_REMOVE = predata/namen
TAR = tar
GZIP = --best
srcdir = .
top_srcdir = .
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
backup_extensions = "~" ".bak"
all: check
check:
@if [ -z "`which fortune`" -o -z "`which strfile`" ] ; then ( \
echo "You will need fortune to use this database."; \
exit 1 ) \
else ( \
echo "OK, fortune is installed."; \
echo "Read the INSTALL file and use install.sh to install $(distdir)." ) \
fi
dist: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
distdir: $(DISTFILES)
-rm -rf $(distdir)
mkdir $(distdir)
-chmod 777 $(distdir)
@for file in $(DISTFILES); do \
d=$(srcdir); \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file; \
done
for subdir in $(SUBDIRS); do \
d=$(srcdir); \
test -d $(distdir)/$$subdir \
|| cp -pR $$d/$$subdir $(distdir)/$$subdir; \
done
install: check
@echo "Sorry, installation via this Makefile is not supported yet."
clean:
-rm -f build $(FILES_TO_REMOVE)
cleanbackup: clean
for back in $(backup_extensions); do \
( find . -type f -name *$$back -exec rm -f \{\} \; ) \
done
distclean: cleanbackup
-rm -f $(distdir).tar.gz
|