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