1183
|
1 # Makefile for octave's scripts/time directory |
|
2 # |
7017
|
3 # Copyright (C) 1995, 1996, 1997, 2002, 2005, 2006, 2007 John W. Eaton |
|
4 # |
7016
|
5 # This file is part of Octave. |
|
6 # |
|
7 # Octave is free software; you can redistribute it and/or modify it |
|
8 # under the terms of the GNU General Public License as published by the |
|
9 # Free Software Foundation; either version 3 of the License, or (at |
|
10 # your option) any later version. |
|
11 # |
|
12 # Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 # for more details. |
|
16 # |
|
17 # You should have received a copy of the GNU General Public License |
|
18 # along with Octave; see the file COPYING. If not, see |
|
19 # <http://www.gnu.org/licenses/>. |
1183
|
20 |
|
21 TOPDIR = ../.. |
|
22 |
|
23 script_sub_dir = time |
|
24 |
|
25 srcdir = @srcdir@ |
|
26 top_srcdir = @top_srcdir@ |
|
27 VPATH = @srcdir@ |
|
28 |
|
29 include $(TOPDIR)/Makeconf |
|
30 |
|
31 INSTALL = @INSTALL@ |
|
32 INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|
33 INSTALL_DATA = @INSTALL_DATA@ |
|
34 |
6283
|
35 SOURCES = asctime.m calendar.m clock.m ctime.m date.m datenum.m \ |
|
36 datestr.m datevec.m eomday.m etime.m is_leap_year.m now.m \ |
7045
|
37 weekday.m |
1183
|
38 |
6797
|
39 DISTFILES = $(addprefix $(srcdir)/, Makefile.in $(SOURCES)) |
1183
|
40 |
6283
|
41 FCN_FILES = $(addprefix $(srcdir)/, $(SOURCES)) |
1183
|
42 FCN_FILES_NO_DIR = $(notdir $(FCN_FILES)) |
|
43 |
5597
|
44 all: PKG_ADD |
1183
|
45 .PHONY: all |
|
46 |
2811
|
47 install install-strip: |
4225
|
48 $(do-script-install) |
2811
|
49 .PHONY: install install-strip |
1183
|
50 |
|
51 uninstall: |
4225
|
52 $(do-script-uninstall) |
1183
|
53 .PHONY: uninstall |
|
54 |
|
55 clean: |
|
56 .PHONY: clean |
|
57 |
5597
|
58 PKG_ADD: $(FCN_FILES) |
|
59 @echo "making PKG_ADD" |
|
60 @$(do-mkpkgadd) |
|
61 |
1183
|
62 tags: $(SOURCES) |
|
63 ctags $(SOURCES) |
|
64 |
|
65 TAGS: $(SOURCES) |
|
66 etags $(SOURCES) |
|
67 |
|
68 mostlyclean: clean |
|
69 .PHONY: mostlyclean |
|
70 |
|
71 distclean: clean |
5866
|
72 rm -f Makefile PKG_ADD |
1183
|
73 .PHONY: distclean |
|
74 |
1391
|
75 maintainer-clean: distclean |
1183
|
76 rm -f tags TAGS |
1391
|
77 .PHONY: maintainer-clean |
1183
|
78 |
|
79 dist: |
6467
|
80 ln $(DISTFILES) ../../`cat ../../.fname`/scripts/time |
1183
|
81 .PHONY: dist |