forked from hebcal/hebcal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
79 lines (59 loc) · 2.64 KB
/
Makefile.am
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
67
68
69
70
71
72
73
74
75
76
77
78
79
## Process this file with automake to produce Makefile.in
#$Header$
# Copyright(c) 1994-2004 Danny Sadinoff
# Portions Copyright (c) 2002 Michael J. Radwin. All Rights Reserved.
# See section COPYING for conditions for redistribution
# FIX do something with
# groff -T html -man man/man1/hebcal.1 >hebcal-manpage.html
#-----------------------------------------------------------------
#AM_CPPFLAGS += -DHEBCAL_OPTS='"$(HEBCAL_OPTS)"'
AM_CPPFLAGS = -DVERSION='"$(PACKAGE_VERSION)"' -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_INTTYPES_H
# AM_CFLAGS = -Wall
# AM_LDFLAGS = $(LIBINTL)
#DEFS = -DLOCALEDIR=\"@localedir@\" \
# @DEFS@
SUBDIRS = tests
bin_PROGRAMS = hebcal
#sanity_check_SOURCES = common.c danlib.c error.c greg.c sanity-check.c
hebcal_c_files = common.c danlib.c error.c greg.c hebcal.c \
timelib.c astro.c tm2unixtime.c unixtime2tm.c dow.c parse_tz.c \
holidays.c sedra.c start.c gnu.c dafyomi.c \
strings_ashkenazi.c strings_he.c strings_pl.c strings_ru.c \
strings_fi.c \
strings_fr.c \
strings_ashkenazi_litvish.c \
strings_ashkenazi_poylish.c \
strings_ashkenazi_standard.c \
translations.c
hebcal_h_files = common.h danlib.h greg.h hebcal.h \
myerror.h translations.h \
timezonedb.h timelib.h astro.h timelib_structs.h \
sedra.h cities.h
hebcal_SOURCES = $(hebcal_c_files) $(hebcal_h_files)
man1_MANS = hebcal.1
EXTRA_DIST = $(man1_MANS)
BUILT_SOURCES =$(srcdir)/package.m4
VOLUME_NAME = @PACKAGE_NAME@-@PACKAGE_VERSION@
BINARY_DIR = $(VOLUME_NAME).bin
DISK_IMAGE_NAME = @PACKAGE_NAME@-osx-ppc-@[email protected]
HDIUTIL = /usr/bin/hdiutil
binary-osx: hebcal hebcal.1 README.md NEWS
rm -fr $(BINARY_DIR)
mkdir -p $(BINARY_DIR)/bin $(BINARY_DIR)/man/man1
cp hebcal $(BINARY_DIR)/bin
cp hebcal.1 $(BINARY_DIR)/man/man1
cp NEWS $(BINARY_DIR)/NEWS.txt
cp README.md $(BINARY_DIR)/README.md
echo "The source for hebcal is available for free at https://github.com/hebcal/hebcal" > $(BINARY_DIR)/SOURCE
$(HDIUTIL) create -ov -volname $(VOLUME_NAME) -fs HFS+ -srcfolder $(BINARY_DIR) $(DISK_IMAGE_NAME)
$(srcdir)/package.m4: $(top_srcdir)/configure.ac
{ \
echo '# Signature of the current package.'; \
echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
} >$(srcdir)/package.m4
check-recursive: all
#ACLOCAL_AMFLAGS = --install -I m4